Lithuanian stemmer benchmarks
This page reports dictionary corpus, exact-root agreement, and runtime evidence for the independently available lt-lt-default Lithuanian model.
Dictionary size: . The exact count is 28,889 distinct usable word forms after parser-compatible filtering and exact, case-preserved deduplication. Stars rank dictionary size relative to all benchmarked dictionaries in five nearly equal groups; they do not measure linguistic quality or benchmark accuracy.
The language metadata declares left-to-right writing.
All speed values are environment-specific and were measured on the hardware and JVM listed in the benchmark overview. The command distribution, exact-root accuracy, and speed tables belong to the published 2026-09-11 Radixor/Java 4.4.0 snapshot. Speed benchmark operations process changed tokens. Accuracy uses the complete Radixor dictionary for the language.
How to read this page
Start with the corpus and patch-command distribution, then compare exact-root agreement with runtime. Dictionary-size stars are contextual metadata, not an accuracy result.
Dictionary corpus
| Model ID | Model version | Language | Dictionary rows | Distinct usable forms | Complete quality tokens | Already-root tokens | Changed tokens | Timing workload | JMH timing tokens |
|---|---|---|---|---|---|---|---|---|---|
lt-lt-default |
1.0.0 |
LT_LT |
1,391 | 28,889 | 28,998 | 1,391 | 27,607 | changed tokens | 27,607 |
Radixor patch-command distribution
Radixor stores the preferred transformation for each normalized dictionary word form as a compiled patch command. This distribution shows which runtime command class is selected by the trained trie for the complete default-model dictionary. The total number of preferred patch commands analyzed for this language is 28,998.
| Command class | Meaning | Word forms | Share |
|---|---|---|---|
AppendCharacterCommand |
Appends one character to the end of the word form. | 101 | 0.348% |
BackwardCompoundCommand |
Applies a multi-step backward patch made from skip, delete, insert, and replace operations. | 25,472 | 87.841% |
DeleteSuffixCommand |
Deletes one or more trailing characters from the word form. | 643 | 2.217% |
PreserveCommand |
Returns the word form unchanged because it already matches the preferred root. | 1,392 | 4.800% |
ReplaceLastCharacterCommand |
Replaces the final character of the word form. | 1,390 | 4.793% |
Accuracy
Accuracy uses the complete dictionary and reports exact agreement with the dictionary root for each identified model and candidate.
| Stemmer | All exact | Changed exact | Root preserved | Note |
|---|---|---|---|---|
| Radixor | 99.624% | 99.605% | 100.000% | Exact model-ID benchmark; measured in this snapshot. |
| Official Snowball direct (Java) | 0.003% | 0.000% | 0.072% | Official Snowball 3.1.0 generated Java stemmer; measured in this snapshot. |
| Lucene SnowballFilter | 0.003% | 0.000% | 0.072% | Lucene integration of the matching Snowball algorithm; measured in this snapshot. |
Speed
Speed uses JMH average time, 3 warmup iterations, 5 measurement iterations, 3 independent forks, and 1 thread.
The canonical timing workload uses changed tokens when available; a root-only dictionary uses its complete root-preservation corpus. Smaller populations are repeated deterministically to the timing minimum. Relative factors use the Radixor row as the baseline.
| Stemmer | Benchmark method | Score ms/op | Error ms | ns/token | Relative vs Radixor | Note |
|---|---|---|---|---|---|---|
| Radixor | radixor[lt-lt-default] |
3.552 | 0.460 | 128.7 | 1.000 | Canonical model timing workload; measured in this snapshot. |
| Official Snowball direct (Java) | snowballDirect[LITHUANIAN] |
4.243 | 0.345 | 153.7 | 1.194 | Official generated Java stemmer; measured in this snapshot. The reported Radixor and Snowball 99.9% JMH intervals overlap; this summary does not support a directional conclusion, and the runtime ratio remains a point estimate. |
| Lucene SnowballFilter | luceneSnowballFilter[LITHUANIAN] |
5.523 | 0.556 | 200.1 | 1.555 | Lucene TokenStream integration; measured in this snapshot. |
Interpretation notes
- The star tier reflects only relative distinct-form count among all benchmarked dictionaries.
- Values shown above come from the identified canonical benchmark snapshot.
- Runtime and exact-root agreement describe different properties and must be interpreted together.
Dictionary-family generalization conclusion
This is the language-specific conclusion from the independent radixor-generalization-v1 baseline
experiment. It is intentionally separate from the wider edit-cost protocol below; values from
the two frozen snapshots are not substituted for one another.
Evidence
Model lt-lt-default version 1.0.0 is evaluated over five
predeclared nested splits. Unseen metrics remove withheld occurrences whose normalized surface
also appeared in training. Parentheses show the observed split minimum–maximum.
| Training rows | Median unseen occurrences | Unseen all exact | Unseen changed exact | Unseen root preserved |
|---|---|---|---|---|
| 10% | 26,154 | 41.955% (39.757–46.002) | 39.455% (37.165–43.747) | 90.895% (90.415–91.693) |
| 20% | 23,192 | 50.338% (47.680–52.416) | 48.199% (45.387–50.333) | 93.172% (91.105–93.980) |
| 30% | 20,211 | 51.961% (49.300–54.333) | 49.943% (47.092–52.387) | 92.916% (92.189–93.737) |
| 40% | 17,342 | 54.480% (50.707–55.714) | 52.544% (48.617–53.826) | 92.934% (92.695–93.533) |
| 50% | 14,406 | 54.463% (52.847–55.810) | 52.556% (50.779–53.867) | 92.374% (91.655–93.813) |
| 60% | 11,423 | 54.959% (53.373–55.165) | 53.023% (51.393–53.172) | 92.973% (92.266–93.705) |
| 70% | 8,816 | 55.172% (53.005–56.545) | 53.233% (51.076–54.632) | 93.046% (92.326–94.245) |
| 80% | 5,924 | 56.555% (52.829–58.980) | 54.788% (50.959–57.262) | 93.165% (92.446–93.885) |
| 90% | 3,098 | 52.408% (48.059–60.658) | 50.780% (45.635–59.213) | 92.806% (89.928–94.245) |
Generalization conclusion
- Median exactness on genuinely unseen changed forms moves from 39.455% at 10% training knowledge to 50.780% at 90%, a measured +11.326 percentage-point change.
- Unseen all-form exactness moves from 41.955% at 10% training knowledge to 52.408% at 90%, a measured +10.453 percentage-point change.
- Preservation of unseen already-root forms moves from 90.895% at 10% training knowledge to 92.806% at 90%, a measured +1.911 percentage-point change.
- The evidence establishes within-resource transfer across withheld dictionary families. It does not estimate unrelated domains, misspellings, arbitrary compounds, or external corpora.
The complete ten-level table and split ranges remain in the complete generalization appendix; raw counters and provenance are in active machine-readable snapshot. The frozen methodology defines family-level splitting, unseen-surface leakage control, aggregation, and the limits of the claim.
Stemming quality
Runtime performance and linguistic grouping quality are independent dimensions. This section evaluates language LT_LT using the complete validated stemming-quality result matrix and the canonical linguistic-quality methodology, including its overlapping-group relation, dictionary modes, output policies, metrics, and ranking rules.
Radixor's model was trained from the same lexical resource that defines this benchmark's dictionary-reference relation. The result therefore measures same-resource agreement, not independent external linguistic validity. Third-party adapters receive the same evaluated forms but were not trained by this benchmark.
The tables retain both canonical dictionary-processing modes and every applicable output policy without redefining them on each language page. Download the complete machine-readable result snapshot.
Evaluation scope and key findings
The default model is lt-lt-default, loaded from classpath resource org/egothor/stemmer/models/lt-lt-default/stemmer.gz. The following findings compare only deterministic PRIMARY_OUTPUT rows over identical included groups; candidate policies are reported separately as capability analyses.
- ALL_WORDS:
Radixorranks first by balanced accuracy at 0.998532 among 3 deterministic stemmers. The runner-up isSNOWBALL LITHUANIAN DIRECTat 0.786093, a difference of 0.212439. This rank does not imply leadership in throughput or every secondary metric. - LOWERCASE_GROUPS_ONLY:
Radixorranks first by balanced accuracy at 0.998532 among 3 deterministic stemmers. The runner-up isSNOWBALL LITHUANIAN DIRECTat 0.786093, a difference of 0.212439. This rank does not imply leadership in throughput or every secondary metric.
ALL_WORDS
This mode contains 5 result rows, 3 evaluated stemmers, and 3 output policies. Applied-row and form counts are shown per row because adapters share the language corpus but policy rows remain independently auditable. Where at least two deterministic rows are available, PRIMARY_OUTPUT and ALL_CANDIDATES rankings are ordered by unrounded balanced accuracy, followed by MCC, F1, over-stemming rate, over-stemming count, under-stemming rate, and stemmer. ANY_CANDIDATE has no single rank metric and is listed alphabetically. Balanced accuracy is a navigation metric, not a universally authoritative quality score.
PRIMARY_OUTPUT ranking
| Rank | Stemmer | Balanced accuracy | Over-stemming (OI) | Under-stemming (UI) |
|---|---|---|---|---|
| 1 | Radixor | 0.998532 | 0.000000% | 0.293541% |
| 2 | SNOWBALL LITHUANIAN DIRECT | 0.786093 | 0.004131% | 42.777290% |
| 3 | SNOWBALL LITHUANIAN LUCENE FILTER | 0.785955 | 0.004230% | 42.804748% |
Classification metrics
| Rank | Stemmer | Output policy | Precision | Recall | Specificity | Balanced accuracy | Pairwise accuracy | Error rate |
|---|---|---|---|---|---|---|---|---|
| 1 | Radixor | PRIMARY_OUTPUT | 1.000000 | 0.997065 | 1.000000 | 0.998532 | 0.999997 | 0.000003 |
| 2 | SNOWBALL LITHUANIAN DIRECT | PRIMARY_OUTPUT | 0.938457 | 0.572227 | 0.999959 | 0.786093 | 0.999488 | 0.000512 |
| 3 | SNOWBALL LITHUANIAN LUCENE FILTER | PRIMARY_OUTPUT | 0.937045 | 0.571953 | 0.999958 | 0.785955 | 0.999487 | 0.000513 |
Pair-relation metrics
| Rank | Stemmer | Output policy | F0.5 | F1 | F2 | Jaccard | Fowlkes–Mallows | MCC |
|---|---|---|---|---|---|---|---|---|
| 1 | Radixor | PRIMARY_OUTPUT | 0.999412 | 0.998530 | 0.997650 | 0.997065 | 0.998531 | 0.998530 |
| 2 | SNOWBALL LITHUANIAN DIRECT | PRIMARY_OUTPUT | 0.831964 | 0.710950 | 0.620670 | 0.551530 | 0.732810 | 0.732600 |
| 3 | SNOWBALL LITHUANIAN LUCENE FILTER | PRIMARY_OUTPUT | 0.830960 | 0.710333 | 0.620288 | 0.550788 | 0.732083 | 0.731872 |
Raw pair counts
| Rank | Stemmer | Output policy | TP | FP | FN | TN | Over error / possible | Under error / possible |
|---|---|---|---|---|---|---|---|---|
| 1 | Radixor | PRIMARY_OUTPUT | 457532 | 0 | 1347 | 416813837 | 0 / 416813837 | 1347 / 458879 |
| 2 | SNOWBALL LITHUANIAN DIRECT | PRIMARY_OUTPUT | 262583 | 17220 | 196296 | 416796617 | 17220 / 416813837 | 196296 / 458879 |
| 3 | SNOWBALL LITHUANIAN LUCENE FILTER | PRIMARY_OUTPUT | 262457 | 17633 | 196422 | 416796204 | 17633 / 416813837 | 196422 / 458879 |
ANY_CANDIDATE oracle bounds
These results are measured, not missing. ANY_CANDIDATE answers two separate optimistic questions for each pair: a gold-related pair avoids under-stemming when the candidate sets intersect, while a gold-negative pair avoids over-stemming when some non-colliding candidate selection exists. The oracle may choose a different candidate for the same word in different pairs. Consequently, these decisions do not form one globally realizable predicted relation or one TP/FP/FN/TN confusion matrix. Balanced accuracy, F-scores, Jaccard, Fowlkes–Mallows, and MCC are therefore mathematically not applicable, rather than unknown.
| Stemmer | Optimistic over-stemming (OI) | Optimistic under-stemming (UI) |
|---|---|---|
| Radixor | 0.000000% | 0.000000% |
Oracle-bound pair counts
| Stemmer | Unavoidable over errors / gold-negative pairs | Unrepairable under errors / gold-related pairs |
|---|---|---|
| Radixor | 0 / 416813837 | 0 / 458879 |
ALL_CANDIDATES result (no same-language comparator)
| Rank | Stemmer | Balanced accuracy | Over-stemming (OI) | Under-stemming (UI) |
|---|---|---|---|---|
| n/a | Radixor | 1.000000 | 0.000000% | 0.000000% |
Classification metrics
| Rank | Stemmer | Output policy | Precision | Recall | Specificity | Balanced accuracy | Pairwise accuracy | Error rate |
|---|---|---|---|---|---|---|---|---|
| n/a | Radixor | ALL_CANDIDATES | 1.000000 | 1.000000 | 1.000000 | 1.000000 | 1.000000 | 0.000000 |
Pair-relation metrics
| Rank | Stemmer | Output policy | F0.5 | F1 | F2 | Jaccard | Fowlkes–Mallows | MCC |
|---|---|---|---|---|---|---|---|---|
| n/a | Radixor | ALL_CANDIDATES | 1.000000 | 1.000000 | 1.000000 | 1.000000 | 1.000000 | 1.000000 |
Raw pair counts
| Rank | Stemmer | Output policy | TP | FP | FN | TN | Over error / possible | Under error / possible |
|---|---|---|---|---|---|---|---|---|
| n/a | Radixor | ALL_CANDIDATES | 458879 | 0 | 0 | 416813837 | 0 / 416813837 | 0 / 458879 |
Multi-output analysis
Alternative candidates are capability analyses, not replacements for the deterministic comparison.
| Stemmer | Under pairs repaired | Best-case over pairs avoided | All-candidate collisions added | Multi-candidate forms | Multi-candidate share | Maximum candidates | Total candidate assignments |
|---|---|---|---|---|---|---|---|
| Radixor | 1347 | 0 | 0 | 109 | 0.377306% | 2 | 28998 |
LOWERCASE_GROUPS_ONLY
This mode contains 5 result rows, 3 evaluated stemmers, and 3 output policies. Applied-row and form counts are shown per row because adapters share the language corpus but policy rows remain independently auditable. Where at least two deterministic rows are available, PRIMARY_OUTPUT and ALL_CANDIDATES rankings are ordered by unrounded balanced accuracy, followed by MCC, F1, over-stemming rate, over-stemming count, under-stemming rate, and stemmer. ANY_CANDIDATE has no single rank metric and is listed alphabetically. Balanced accuracy is a navigation metric, not a universally authoritative quality score.
PRIMARY_OUTPUT ranking
| Rank | Stemmer | Balanced accuracy | Over-stemming (OI) | Under-stemming (UI) |
|---|---|---|---|---|
| 1 | Radixor | 0.998532 | 0.000000% | 0.293541% |
| 2 | SNOWBALL LITHUANIAN DIRECT | 0.786093 | 0.004131% | 42.777290% |
| 3 | SNOWBALL LITHUANIAN LUCENE FILTER | 0.785955 | 0.004230% | 42.804748% |
Classification metrics
| Rank | Stemmer | Output policy | Precision | Recall | Specificity | Balanced accuracy | Pairwise accuracy | Error rate |
|---|---|---|---|---|---|---|---|---|
| 1 | Radixor | PRIMARY_OUTPUT | 1.000000 | 0.997065 | 1.000000 | 0.998532 | 0.999997 | 0.000003 |
| 2 | SNOWBALL LITHUANIAN DIRECT | PRIMARY_OUTPUT | 0.938457 | 0.572227 | 0.999959 | 0.786093 | 0.999488 | 0.000512 |
| 3 | SNOWBALL LITHUANIAN LUCENE FILTER | PRIMARY_OUTPUT | 0.937045 | 0.571953 | 0.999958 | 0.785955 | 0.999487 | 0.000513 |
Pair-relation metrics
| Rank | Stemmer | Output policy | F0.5 | F1 | F2 | Jaccard | Fowlkes–Mallows | MCC |
|---|---|---|---|---|---|---|---|---|
| 1 | Radixor | PRIMARY_OUTPUT | 0.999412 | 0.998530 | 0.997650 | 0.997065 | 0.998531 | 0.998530 |
| 2 | SNOWBALL LITHUANIAN DIRECT | PRIMARY_OUTPUT | 0.831964 | 0.710950 | 0.620670 | 0.551530 | 0.732810 | 0.732600 |
| 3 | SNOWBALL LITHUANIAN LUCENE FILTER | PRIMARY_OUTPUT | 0.830960 | 0.710333 | 0.620288 | 0.550788 | 0.732083 | 0.731872 |
Raw pair counts
| Rank | Stemmer | Output policy | TP | FP | FN | TN | Over error / possible | Under error / possible |
|---|---|---|---|---|---|---|---|---|
| 1 | Radixor | PRIMARY_OUTPUT | 457532 | 0 | 1347 | 416813837 | 0 / 416813837 | 1347 / 458879 |
| 2 | SNOWBALL LITHUANIAN DIRECT | PRIMARY_OUTPUT | 262583 | 17220 | 196296 | 416796617 | 17220 / 416813837 | 196296 / 458879 |
| 3 | SNOWBALL LITHUANIAN LUCENE FILTER | PRIMARY_OUTPUT | 262457 | 17633 | 196422 | 416796204 | 17633 / 416813837 | 196422 / 458879 |
ANY_CANDIDATE oracle bounds
These results are measured, not missing. ANY_CANDIDATE answers two separate optimistic questions for each pair: a gold-related pair avoids under-stemming when the candidate sets intersect, while a gold-negative pair avoids over-stemming when some non-colliding candidate selection exists. The oracle may choose a different candidate for the same word in different pairs. Consequently, these decisions do not form one globally realizable predicted relation or one TP/FP/FN/TN confusion matrix. Balanced accuracy, F-scores, Jaccard, Fowlkes–Mallows, and MCC are therefore mathematically not applicable, rather than unknown.
| Stemmer | Optimistic over-stemming (OI) | Optimistic under-stemming (UI) |
|---|---|---|
| Radixor | 0.000000% | 0.000000% |
Oracle-bound pair counts
| Stemmer | Unavoidable over errors / gold-negative pairs | Unrepairable under errors / gold-related pairs |
|---|---|---|
| Radixor | 0 / 416813837 | 0 / 458879 |
ALL_CANDIDATES result (no same-language comparator)
| Rank | Stemmer | Balanced accuracy | Over-stemming (OI) | Under-stemming (UI) |
|---|---|---|---|---|
| n/a | Radixor | 1.000000 | 0.000000% | 0.000000% |
Classification metrics
| Rank | Stemmer | Output policy | Precision | Recall | Specificity | Balanced accuracy | Pairwise accuracy | Error rate |
|---|---|---|---|---|---|---|---|---|
| n/a | Radixor | ALL_CANDIDATES | 1.000000 | 1.000000 | 1.000000 | 1.000000 | 1.000000 | 0.000000 |
Pair-relation metrics
| Rank | Stemmer | Output policy | F0.5 | F1 | F2 | Jaccard | Fowlkes–Mallows | MCC |
|---|---|---|---|---|---|---|---|---|
| n/a | Radixor | ALL_CANDIDATES | 1.000000 | 1.000000 | 1.000000 | 1.000000 | 1.000000 | 1.000000 |
Raw pair counts
| Rank | Stemmer | Output policy | TP | FP | FN | TN | Over error / possible | Under error / possible |
|---|---|---|---|---|---|---|---|---|
| n/a | Radixor | ALL_CANDIDATES | 458879 | 0 | 0 | 416813837 | 0 / 416813837 | 0 / 458879 |
Multi-output analysis
Alternative candidates are capability analyses, not replacements for the deterministic comparison.
| Stemmer | Under pairs repaired | Best-case over pairs avoided | All-candidate collisions added | Multi-candidate forms | Multi-candidate share | Maximum candidates | Total candidate assignments |
|---|---|---|---|---|---|---|---|
| Radixor | 1347 | 0 | 0 | 109 | 0.377306% | 2 | 28998 |
Method and interpretation boundaries
The linguistic-quality methodology defines the overlapping gold relation, both dictionary-processing modes, all three output policies, confusion counts, formulas, undefined denominators, aggregation, ranking, and inapplicable partition metrics. The candidate-policy reference explains why ANY_CANDIDATE is an oracle-assisted capability bound rather than deterministic runtime behavior.
This page preserves the language-specific raw counts, metrics, candidate distributions, comparison availability, and caveats. The machine-readable CSV remains authoritative for every field.
Provenance
- Authoritative source:
docs/benchmarks/data/stemming-quality-2026-09-13.csv - Source SHA-256:
d41e00160cda44758e806c37d210f2d9b90b1ebad22eebe5ece89a40f4ed9ab0 - Evaluation command:
./gradlew stemmingQuality --no-daemon - Dictionary language:
LT_LT - Processing modes:
ALL_WORDS,LOWERCASE_GROUPS_ONLY - Stemmer versions and transitive artifacts: resolved by the repository's JMH Gradle configuration and
gradle.lockfile - Model ID, version, and SHA-256: recorded in every CSV row
- Run date, core source state, JDK, operating system, and hardware: recorded on the benchmark environment page