Skip to content

Norwegian Nynorsk stemmer benchmarks ★★★★☆

This page reports same-language stemming benchmarks for Norwegian Nynorsk. Accuracy is listed first because speed without root agreement is not enough to interpret stemmer quality.

Dictionary size: ★★★★☆. The exact count is 16,937 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.

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. The dictionary-family experiment, edit-cost experiment, and pairwise linguistic evaluation answer separate questions. Their 10–90% curves use independent frozen protocols and must not be substituted for one another.

Runtime and exact-root agreement measure different properties. Light, minimal, possessive, and other rule-based filters intentionally have different transformation scopes, so a lower runtime can coexist with lower dictionary-root agreement. Read the speed and accuracy tables together. The Radixor rows in this refresh use the contracted compiled patch trie: compilation collapses uniform patch-command subtrees into accepting leaves, reducing hot lookup depth while preserving the preferred stemming result measured by the accuracy pass. The EnglishRadixorDictionaryCoverageBenchmark shows the resulting quality/speed envelope explicitly.

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
nn-no-default 1.0.0 NN_NO 4,688 16,937 19,651 6,089 13,562 changed tokens 13,562

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 19,651.

Command class Meaning Word forms Share
AppendCharacterCommand Appends one character to the end of the word form. 312 1.588%
BackwardCompoundCommand Applies a multi-step backward patch made from skip, delete, insert, and replace operations. 1,456 7.409%
DeleteSuffixCommand Deletes one or more trailing characters from the word form. 11,325 57.631%
PreserveCommand Returns the word form unchanged because it already matches the preferred root. 6,031 30.691%
ReplaceLastCharacterCommand Replaces the final character of the word form. 527 2.682%

Accuracy

Accuracy is computed from JMH auxiliary counters in the current report. The counters are deterministic for a fixed corpus and stemmer; percentages divide matching counters by evaluated counters from the same report and are not timing metrics.

Stemmer All exact Changed exact Root preserved Note
Radixor 93.089% 91.395% 96.863% Radixor dictionary-trained patch-command stemmer.
Official Snowball direct (Java) 60.974% 60.212% 62.670% Official Snowball generated Java stemmer; rule-based suffix algorithm.
Lucene SnowballFilter 60.918% 60.146% 62.638% Lucene TokenFilter integration path around the Snowball algorithm.

Speed

Speed uses JMH average time, 3 warmup iterations, 5 measurement iterations, 3 independent forks, and 1 thread. Relative factor is computed against the single Radixor row on this language page. Values below 1.000 are faster than that Radixor baseline; values above 1.000 are slower.

Stemmer Benchmark method Score ms/op Error ms ns/token Relative vs Radixor Note
Radixor radixor[nn-no-default] 0.735 0.136 54.2 1.000 Radixor dictionary-trained patch-command stemmer.
Official Snowball direct (Java) snowballDirect[NORWEGIAN_NYNORSK] 1.312 0.175 96.7 1.785 Official Snowball generated Java stemmer; direct API.
Lucene SnowballFilter luceneSnowballFilter[NORWEGIAN_NYNORSK] 1.551 0.248 114.4 2.111 Lucene TokenFilter path around Snowball; includes TokenStream overhead.

Interpretation notes

  • Radixor is a dictionary-trained patch-command stemmer. Its learned transformations can generalize beyond the word forms listed in the training resource.
  • Light, minimal, plural, and possessive filters are narrow baselines. They can be fast because they intentionally perform less linguistic work.
  • Lucene TokenFilter rows include TokenStream, attribute, and required normalization overhead. Direct rows measure exposed direct APIs.
  • Morfologik rows are dictionary-based and can emit multiple terms for one input token. Quality rows use the first returned term when no ranking weight is available.
  • Snowball rows are rule-based generated suffix stemmers; they are useful algorithmic baselines, not dictionary-root equivalence guarantees.

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 nn-no-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% 17,401 63.195% (60.378–64.426) 51.191% (46.485–52.220) 90.470% (89.673–91.396)
20% 15,283 66.030% (65.878–67.801) 55.037% (54.754–57.088) 90.572% (89.668–91.189)
30% 13,143 68.697% (68.490–69.926) 58.151% (57.820–59.696) 91.536% (91.227–91.890)
40% 11,136 70.773% (70.483–71.887) 60.799% (60.313–62.437) 92.181% (91.901–92.710)
50% 9,118 72.900% (71.989–74.007) 62.808% (62.003–65.179) 93.120% (92.681–94.000)
60% 7,179 74.537% (72.582–75.521) 65.383% (63.050–67.121) 93.672% (92.678–95.267)
70% 5,324 76.278% (73.779–76.665) 67.482% (64.436–68.148) 94.306% (93.322–94.907)
80% 3,536 77.555% (74.632–78.831) 68.830% (64.861–70.289) 95.308% (94.801–95.734)
90% 1,714 78.608% (77.071–80.395) 70.338% (68.194–72.339) 95.153% (94.473–97.054)

Generalization conclusion

  • Median exactness on genuinely unseen changed forms moves from 51.191% at 10% training knowledge to 70.338% at 90%, a measured +19.147 percentage-point change.
  • Unseen all-form exactness moves from 63.195% at 10% training knowledge to 78.608% at 90%, a measured +15.413 percentage-point change.
  • Preservation of unseen already-root forms moves from 90.470% at 10% training knowledge to 95.153% at 90%, a measured +4.683 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.

Edit costs and dictionary-knowledge generalization

This section interprets the edit-cost and held-out-family experiment for NN_NO separately from the cross-language macro summary. Each knowledge point is the median of five frozen, nested splits. The primary exactness outcome covers changed forms in withheld families after excluding normalized surfaces seen in training. Thus the complete dictionary is the evaluation population, while only genuinely unseen surfaces contribute to this outcome.

Cost labels have the fixed form D<delete>I<insert>R<replace>M<match>. D is the cost of deleting a source character, I of inserting a target character, R of replacing a source character, and M of keeping an equal source/target character unchanged (the match or skip step). For example, D2I5R3M0 means delete cost 2, insert cost 5, replace cost 3, and match cost 0. The numbers are relative dynamic-programming costs, not command counts.

Evidence

Dictionary rows Evaluated forms Changed-form share Baseline commands Exact cost classes Grid reduction Largest exact class
4,688 19,651 69.01% 299 11 21.27× 77

The exact classes are based on command-by-command equality over the complete dictionary, not equality of aggregate trie metrics. A higher class count means that this dictionary exposes more cost-dependent encoder decisions; it does not by itself mean better quality.

Knowledge Baseline unseen changed exact Selected-cost exact Δ Baseline F0.5 Selected F0.5 Baseline commands Selected commands
10% 50.756% 50.756% +0.000 pp 0.8038 0.8038 1.000× 1.000×
20% 55.811% 55.811% +0.000 pp 0.8325 0.8325 1.000× 1.000×
30% 59.864% 59.864% +0.000 pp 0.8514 0.8514 1.000× 1.000×
40% 61.958% 61.958% +0.000 pp 0.8660 0.8660 1.000× 1.000×
50% 63.758% 63.758% +0.000 pp 0.8763 0.8763 1.000× 1.000×
60% 65.735% 65.735% +0.000 pp 0.8793 0.8793 1.000× 1.000×
70% 67.368% 67.368% +0.000 pp 0.8862 0.8862 1.000× 1.000×
80% 67.993% 67.993% +0.000 pp 0.8921 0.8921 1.000× 1.000×
90% 69.473% 69.473% +0.000 pp 0.8928 0.8928 1.000× 1.000×

Within-language associations

Spearman coefficients are calculated independently inside each seed × knowledge stratum across the normalized cost grid. The table reports the median and central 95% empirical interval across up to 45 strata. A relationship is called stable only when it is defined in all 45 strata and the interval retains one sign. These intervals are descriptive, not multiplicity-adjusted confidence intervals. Every predictor and outcome label is defined in the methodology glossary.

The strongest structural pairs whose central interval retains one sign are:

Predictor Structural outcome Median Spearman ρ Central 95% Strata
patch_command_ratio value_references +0.840 +0.504…+0.999 45
patch_command_ratio trie_nodes +0.762 +0.266…+0.999 45
match_cost value_references -0.143 -0.233…-0.059 45
delete_cost trie_nodes +0.349 +0.058…+0.382 45
insert_cost trie_nodes +0.349 +0.058…+0.382 45
match_cost trie_nodes -0.141 -0.239…-0.058 45

For each quality outcome, the largest absolute median association is shown even when its interval crosses zero. This prevents a large median in heterogeneous strata from being misreported as a portable language-level effect.

Predictor Quality outcome Median Spearman ρ Central 95% Stable Defined strata
trie_edges unseen_f05 +0.813 +0.813…+0.813 no 2 / 45
trie_edges unseen_over_percent -0.813 -0.813…-0.813 no 2 / 45

No within-stratum coefficient is defined for unseen_changed_exact, unseen_under_percent because these outcomes do not vary across cost configurations in the measured language strata. Within this matrix, that is observed cost insensitivity for those outcomes, not missing measurement.

Edit-cost conclusion

  • With baseline costs, median unseen changed-form exactness changes from 50.756% at 10% knowledge to 69.473% at 90%, a +18.717 pp measured knowledge effect.
  • The predeclared selection is D1I1R1M0. Its median unseen changed-form exactness differs from baseline by +0.000 pp and it does not change the median retained-command count (1.000× baseline).
  • Under the selected costs, the 10%–90% knowledge change is +18.717 pp. This quantifies generalization for this dictionary; it is not a claim about unrelated domains or lexical resources.
  • The selection rule retains the production baseline, so this experiment supplies no measured reason to change edit costs for this language under the predeclared objective.
  • No cost or representation predictor is both defined in all 45 strata and retains one association sign over the central 95% interval for an unseen-form quality outcome. Effects with partial coverage are insufficient for a stable language-level claim; the remaining measured effects are heterogeneous across knowledge levels and splits.

The complete evidence is available in the raw logical matrix, the per-language knowledge curves, and the per-language association table. See the cross-language analysis and frozen methodology for scope and limitations.

Stemming quality

Runtime performance and linguistic grouping quality are independent dimensions. This section evaluates language NN_NO 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 nn-no-default, loaded from classpath resource org/egothor/stemmer/models/nn-no-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: Radixor ranks first by balanced accuracy at 0.950991 among 3 deterministic stemmers. The runner-up is SNOWBALL NORWEGIAN NYNORSK DIRECT at 0.868094, a difference of 0.082897. This rank does not imply leadership in throughput or every secondary metric.
  • LOWERCASE_GROUPS_ONLY: Radixor ranks first by balanced accuracy at 0.951104 among 3 deterministic stemmers. The runner-up is SNOWBALL NORWEGIAN NYNORSK DIRECT at 0.868252, a difference of 0.082852. 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.950991 0.000000% 9.801848%
2 SNOWBALL NORWEGIAN NYNORSK DIRECT 0.868094 0.000838% 26.380368%
3 SNOWBALL NORWEGIAN NYNORSK LUCENE FILTER 0.867636 0.000852% 26.472040%
Classification metrics
Rank Stemmer Output policy Precision Recall Specificity Balanced accuracy Pairwise accuracy Error rate
1 Radixor PRIMARY_OUTPUT 1.000000 0.901982 1.000000 0.950991 0.999981 0.000019
2 SNOWBALL NORWEGIAN NYNORSK DIRECT PRIMARY_OUTPUT 0.945609 0.736196 0.999992 0.868094 0.999939 0.000061
3 SNOWBALL NORWEGIAN NYNORSK LUCENE FILTER PRIMARY_OUTPUT 0.944646 0.735280 0.999991 0.867636 0.999939 0.000061
Pair-relation metrics
Rank Stemmer Output policy F0.5 F1 F2 Jaccard Fowlkes–Mallows MCC
1 Radixor PRIMARY_OUTPUT 0.978728 0.948465 0.920017 0.901982 0.949727 0.949718
2 SNOWBALL NORWEGIAN NYNORSK DIRECT PRIMARY_OUTPUT 0.894709 0.827865 0.770315 0.706288 0.834359 0.834331
3 SNOWBALL NORWEGIAN NYNORSK LUCENE FILTER PRIMARY_OUTPUT 0.893748 0.826916 0.769384 0.704908 0.833414 0.833386
Raw pair counts
Rank Stemmer Output policy TP FP FN TN Over error / possible Under error / possible
1 Radixor PRIMARY_OUTPUT 25582 0 2780 143394154 0 / 143394154 2780 / 28362
2 SNOWBALL NORWEGIAN NYNORSK DIRECT PRIMARY_OUTPUT 20880 1201 7482 143392953 1201 / 143394154 7482 / 28362
3 SNOWBALL NORWEGIAN NYNORSK LUCENE FILTER PRIMARY_OUTPUT 20854 1222 7508 143392932 1222 / 143394154 7508 / 28362

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 / 143394154 0 / 28362

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 28362 0 0 143394154 0 / 143394154 0 / 28362

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 2780 0 0 1091 6.441519% 5 18255

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.951104 0.000000% 9.779191%
2 SNOWBALL NORWEGIAN NYNORSK DIRECT 0.868252 0.000841% 26.348702%
3 SNOWBALL NORWEGIAN NYNORSK LUCENE FILTER 0.867846 0.000841% 26.429959%
Classification metrics
Rank Stemmer Output policy Precision Recall Specificity Balanced accuracy Pairwise accuracy Error rate
1 Radixor PRIMARY_OUTPUT 1.000000 0.902208 1.000000 0.951104 0.999981 0.000019
2 SNOWBALL NORWEGIAN NYNORSK DIRECT PRIMARY_OUTPUT 0.945528 0.736513 0.999992 0.868252 0.999939 0.000061
3 SNOWBALL NORWEGIAN NYNORSK LUCENE FILTER PRIMARY_OUTPUT 0.945471 0.735700 0.999992 0.867846 0.999939 0.000061
Pair-relation metrics
Rank Stemmer Output policy F0.5 F1 F2 Jaccard Fowlkes–Mallows MCC
1 Radixor PRIMARY_OUTPUT 0.978782 0.948590 0.920206 0.902208 0.949846 0.949837
2 SNOWBALL NORWEGIAN NYNORSK DIRECT PRIMARY_OUTPUT 0.894744 0.828034 0.770581 0.706534 0.834502 0.834474
3 SNOWBALL NORWEGIAN NYNORSK LUCENE FILTER PRIMARY_OUTPUT 0.894463 0.827499 0.769862 0.705755 0.834016 0.833989
Raw pair counts
Rank Stemmer Output policy TP FP FN TN Over error / possible Under error / possible
1 Radixor PRIMARY_OUTPUT 25537 0 2768 142869660 0 / 142869660 2768 / 28305
2 SNOWBALL NORWEGIAN NYNORSK DIRECT PRIMARY_OUTPUT 20847 1201 7458 142868459 1201 / 142869660 7458 / 28305
3 SNOWBALL NORWEGIAN NYNORSK LUCENE FILTER PRIMARY_OUTPUT 20824 1201 7481 142868459 1201 / 142869660 7481 / 28305

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 / 142869660 0 / 28305

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 28305 0 0 142869660 0 / 142869660 0 / 28305

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 2768 0 0 1086 6.423755% 5 18219

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: NN_NO
  • 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