Skip to content

Portuguese stemmer benchmarks ★★★★★

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

Dictionary size: ★★★★★. The exact count is 211,091 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
pt-pt-default 1.0.0 PT_PT 4,001 211,091 215,490 8,002 207,488 changed tokens 207,488

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 215,490.

Command class Meaning Word forms Share
AppendCharacterCommand Appends one character to the end of the word form. 3,806 1.766%
BackwardCompoundCommand Applies a multi-step backward patch made from skip, delete, insert, and replace operations. 120,535 55.935%
DeleteSuffixCommand Deletes one or more trailing characters from the word form. 71,284 33.080%
PreserveCommand Returns the word form unchanged because it already matches the preferred root. 8,003 3.714%
ReplaceLastCharacterCommand Replaces the final character of the word form. 11,862 5.505%

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 99.815% 99.808% 100.000% Radixor dictionary-trained patch-command stemmer.
Lucene PortugueseLightStemFilter 8.966% 5.558% 97.326% Light suffix stemmer; intentionally narrower than Radixor's dictionary-trained transformation model.
Lucene PortugueseMinimalStemFilter 5.539% 1.896% 100.000% Minimal suffix reducer; narrow baseline, not a full stemmer.
Lucene SnowballFilter 0.625% 0.558% 2.374% Lucene TokenFilter integration path around the Snowball algorithm.
Official Snowball direct (Java) 0.625% 0.558% 2.374% Official Snowball generated Java stemmer; rule-based suffix algorithm.
Lucene PortugueseStemFilter 0.312% 0.308% 0.425% Portuguese RSLP-style Lucene TokenFilter stemmer.

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[pt-pt-default] 14.207 3.384 68.5 1.000 Radixor dictionary-trained patch-command stemmer.
Lucene PortugueseLightStemFilter portugueseLucenePortugueseLightStemFilter 10.701 0.193 51.6 0.753 Light Portuguese suffix stemmer.
Lucene PortugueseMinimalStemFilter portugueseLucenePortugueseMinimalStemFilter 15.158 0.228 73.1 1.067 Minimal Portuguese suffix reducer.
Official Snowball direct (Java) snowballDirect[PORTUGUESE] 55.240 2.711 266.2 3.888 Official Snowball generated Java stemmer; direct API.
Lucene SnowballFilter luceneSnowballFilter[PORTUGUESE] 62.813 4.340 302.7 4.421 Lucene TokenFilter path around Snowball; includes TokenStream overhead.
Lucene PortugueseStemFilter portugueseLucenePortugueseStemFilter 147.858 8.606 712.6 10.407 Portuguese RSLP-style Lucene TokenFilter.

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 pt-pt-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% 193,881 90.423% (88.898–91.005) 90.053% (88.476–90.666) 99.833% (99.778–100.000)
20% 172,258 91.775% (90.674–92.113) 91.460% (90.315–91.809) 99.938% (99.750–100.000)
30% 150,645 92.584% (91.628–93.106) 92.297% (91.306–92.854) 99.893% (99.643–100.000)
40% 129,092 93.154% (92.758–94.021) 92.889% (92.480–93.795) 99.958% (99.875–100.000)
50% 107,492 93.601% (93.084–94.280) 93.358% (92.822–94.061) 99.900% (99.800–100.000)
60% 85,970 93.987% (93.386–94.179) 93.758% (93.130–93.957) 99.938% (99.937–100.000)
70% 64,495 93.982% (93.731–94.081) 93.752% (93.489–93.852) 100.000% (99.917–100.000)
80% 43,021 94.273% (93.721–94.673) 94.056% (93.478–94.472) 100.000% (99.875–100.000)
90% 21,519 94.620% (93.771–95.072) 94.412% (93.530–94.882) 100.000% (99.749–100.000)

Generalization conclusion

  • Median exactness on genuinely unseen changed forms moves from 90.053% at 10% training knowledge to 94.412% at 90%, a measured +4.359 percentage-point change.
  • Unseen all-form exactness moves from 90.423% at 10% training knowledge to 94.620% at 90%, a measured +4.197 percentage-point change.
  • Preservation of unseen already-root forms moves from 99.833% at 10% training knowledge to 100.000% at 90%, a measured +0.167 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 PT_PT 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,001 215,490 96.29% 369 9 26.00× 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% 89.204% 89.204% +0.000 pp 0.9611 0.9611 1.000× 0.818×
20% 91.244% 91.244% +0.000 pp 0.9691 0.9691 1.000× 0.808×
30% 91.972% 91.972% +0.000 pp 0.9716 0.9716 1.000× 0.811×
40% 92.514% 92.514% +0.000 pp 0.9735 0.9735 1.000× 0.810×
50% 93.092% 93.092% +0.000 pp 0.9756 0.9756 1.000× 0.807×
60% 93.547% 93.547% +0.000 pp 0.9769 0.9769 1.000× 0.813×
70% 93.644% 93.644% +0.000 pp 0.9771 0.9771 1.000× 0.814×
80% 93.887% 93.887% +0.000 pp 0.9774 0.9774 1.000× 0.816×
90% 94.378% 94.378% +0.000 pp 0.9805 0.9805 1.000× 0.825×

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 trie_nodes +1.000 +0.965…+1.000 45
patch_command_ratio value_references +1.000 +0.965…+1.000 45
replace_to_delete_insert trie_nodes +0.935 +0.892…+0.935 45
replace_to_delete_insert value_references +0.935 +0.892…+0.935 45
replace_to_delete_insert patch_command_ratio +0.935 +0.786…+0.935 45
replace_cost trie_nodes +0.794 +0.758…+0.794 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
average_path_length unseen_changed_exact -1.000 -1.000…-1.000 no 43 / 45
average_path_length unseen_f05 -1.000 -1.000…-1.000 no 43 / 45
average_path_length unseen_over_percent -1.000 -1.000…-1.000 no 8 / 45
average_path_length unseen_under_percent +1.000 +1.000…+1.000 no 43 / 45

Edit-cost conclusion

  • With baseline costs, median unseen changed-form exactness changes from 89.204% at 10% knowledge to 94.378% at 90%, a +5.174 pp measured knowledge effect.
  • The predeclared selection is D10I10R1M1. Its median unseen changed-form exactness differs from baseline by +0.000 pp and it reduces the median retained-command count by 18.75% (0.812× baseline).
  • Under the selected costs, the 10%–90% knowledge change is +5.174 pp. This quantifies generalization for this dictionary; it is not a claim about unrelated domains or lexical resources.
  • The non-baseline setting is an efficiency candidate, not a production default: it was selected and evaluated on the same matrix and therefore requires external-corpus or external-dictionary validation before adoption.
  • 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 PT_PT 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 pt-pt-default, loaded from classpath resource org/egothor/stemmer/models/pt-pt-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.998542 among 6 deterministic stemmers. The runner-up is SNOWBALL PORTUGUESE DIRECT at 0.938922, a difference of 0.059620. This rank does not imply leadership in throughput or every secondary metric.
  • LOWERCASE_GROUPS_ONLY: Radixor ranks first by balanced accuracy at 0.998542 among 6 deterministic stemmers. The runner-up is SNOWBALL PORTUGUESE DIRECT at 0.938922, a difference of 0.059620. This rank does not imply leadership in throughput or every secondary metric.

ALL_WORDS

This mode contains 8 result rows, 6 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.998542 0.000000% 0.291615%
2 SNOWBALL PORTUGUESE DIRECT 0.938922 0.000656% 12.214929%
3 SNOWBALL PORTUGUESE LUCENE FILTER 0.938922 0.000656% 12.214929%
4 PORTUGUESE LUCENE PORTUGUESE STEM FILTER 0.846554 0.000364% 30.688771%
5 PORTUGUESE LUCENE PORTUGUESE LIGHT STEM FILTER 0.513632 0.000006% 97.273598%
6 PORTUGUESE LUCENE PORTUGUESE MINIMAL STEM FILTER 0.503949 <0.000001% 99.210240%
Classification metrics
Rank Stemmer Output policy Precision Recall Specificity Balanced accuracy Pairwise accuracy Error rate
1 Radixor PRIMARY_OUTPUT 1.000000 0.997084 1.000000 0.998542 0.999999 0.000001
2 SNOWBALL PORTUGUESE DIRECT PRIMARY_OUTPUT 0.970538 0.877851 0.999993 0.938922 0.999963 0.000037
3 SNOWBALL PORTUGUESE LUCENE FILTER PRIMARY_OUTPUT 0.970538 0.877851 0.999993 0.938922 0.999963 0.000037
4 PORTUGUESE LUCENE PORTUGUESE STEM FILTER PRIMARY_OUTPUT 0.979145 0.693112 0.999996 0.846554 0.999921 0.000079
5 PORTUGUESE LUCENE PORTUGUESE LIGHT STEM FILTER PRIMARY_OUTPUT 0.991719 0.027264 1.000000 0.513632 0.999760 0.000240
6 PORTUGUESE LUCENE PORTUGUESE MINIMAL STEM FILTER PRIMARY_OUTPUT 0.999608 0.007898 1.000000 0.503949 0.999756 0.000244
Pair-relation metrics
Rank Stemmer Output policy F0.5 F1 F2 Jaccard Fowlkes–Mallows MCC
1 Radixor PRIMARY_OUTPUT 0.999415 0.998540 0.997666 0.997084 0.998541 0.998541
2 SNOWBALL PORTUGUESE DIRECT PRIMARY_OUTPUT 0.950467 0.921871 0.894944 0.855065 0.923032 0.923014
3 SNOWBALL PORTUGUESE LUCENE FILTER PRIMARY_OUTPUT 0.950467 0.921871 0.894944 0.855065 0.923032 0.923014
4 PORTUGUESE LUCENE PORTUGUESE STEM FILTER PRIMARY_OUTPUT 0.904492 0.811666 0.736120 0.683029 0.823807 0.823773
5 PORTUGUESE LUCENE PORTUGUESE LIGHT STEM FILTER PRIMARY_OUTPUT 0.122815 0.053069 0.033847 0.027258 0.164433 0.164413
6 PORTUGUESE LUCENE PORTUGUESE MINIMAL STEM FILTER PRIMARY_OUTPUT 0.038278 0.015671 0.009853 0.007898 0.088851 0.088840
Raw pair counts
Rank Stemmer Output policy TP FP FN TN Over error / possible Under error / possible
1 Radixor PRIMARY_OUTPUT 5470353 0 15999 22274113243 0 / 22274113243 15999 / 5486352
2 SNOWBALL PORTUGUESE DIRECT PRIMARY_OUTPUT 4816198 146201 670154 22273967042 146201 / 22274113243 670154 / 5486352
3 SNOWBALL PORTUGUESE LUCENE FILTER PRIMARY_OUTPUT 4816198 146201 670154 22273967042 146201 / 22274113243 670154 / 5486352
4 PORTUGUESE LUCENE PORTUGUESE STEM FILTER PRIMARY_OUTPUT 3802658 80995 1683694 22274032248 80995 / 22274113243 1683694 / 5486352
5 PORTUGUESE LUCENE PORTUGUESE LIGHT STEM FILTER PRIMARY_OUTPUT 149580 1249 5336772 22274111994 1249 / 22274113243 5336772 / 5486352
6 PORTUGUESE LUCENE PORTUGUESE MINIMAL STEM FILTER PRIMARY_OUTPUT 43329 17 5443023 22274113226 17 / 22274113243 5443023 / 5486352

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 / 22274113243 0 / 5486352

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 5486352 0 0 22274113243 0 / 22274113243 0 / 5486352

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 15999 0 0 392 0.185702% 3 211489

LOWERCASE_GROUPS_ONLY

This mode contains 8 result rows, 6 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.998542 0.000000% 0.291615%
2 SNOWBALL PORTUGUESE DIRECT 0.938922 0.000656% 12.214929%
3 SNOWBALL PORTUGUESE LUCENE FILTER 0.938922 0.000656% 12.214929%
4 PORTUGUESE LUCENE PORTUGUESE STEM FILTER 0.846554 0.000364% 30.688771%
5 PORTUGUESE LUCENE PORTUGUESE LIGHT STEM FILTER 0.513632 0.000006% 97.273598%
6 PORTUGUESE LUCENE PORTUGUESE MINIMAL STEM FILTER 0.503949 <0.000001% 99.210240%
Classification metrics
Rank Stemmer Output policy Precision Recall Specificity Balanced accuracy Pairwise accuracy Error rate
1 Radixor PRIMARY_OUTPUT 1.000000 0.997084 1.000000 0.998542 0.999999 0.000001
2 SNOWBALL PORTUGUESE DIRECT PRIMARY_OUTPUT 0.970538 0.877851 0.999993 0.938922 0.999963 0.000037
3 SNOWBALL PORTUGUESE LUCENE FILTER PRIMARY_OUTPUT 0.970538 0.877851 0.999993 0.938922 0.999963 0.000037
4 PORTUGUESE LUCENE PORTUGUESE STEM FILTER PRIMARY_OUTPUT 0.979145 0.693112 0.999996 0.846554 0.999921 0.000079
5 PORTUGUESE LUCENE PORTUGUESE LIGHT STEM FILTER PRIMARY_OUTPUT 0.991719 0.027264 1.000000 0.513632 0.999760 0.000240
6 PORTUGUESE LUCENE PORTUGUESE MINIMAL STEM FILTER PRIMARY_OUTPUT 0.999608 0.007898 1.000000 0.503949 0.999756 0.000244
Pair-relation metrics
Rank Stemmer Output policy F0.5 F1 F2 Jaccard Fowlkes–Mallows MCC
1 Radixor PRIMARY_OUTPUT 0.999415 0.998540 0.997666 0.997084 0.998541 0.998541
2 SNOWBALL PORTUGUESE DIRECT PRIMARY_OUTPUT 0.950467 0.921871 0.894944 0.855065 0.923032 0.923014
3 SNOWBALL PORTUGUESE LUCENE FILTER PRIMARY_OUTPUT 0.950467 0.921871 0.894944 0.855065 0.923032 0.923014
4 PORTUGUESE LUCENE PORTUGUESE STEM FILTER PRIMARY_OUTPUT 0.904492 0.811666 0.736120 0.683029 0.823807 0.823773
5 PORTUGUESE LUCENE PORTUGUESE LIGHT STEM FILTER PRIMARY_OUTPUT 0.122815 0.053069 0.033847 0.027258 0.164433 0.164413
6 PORTUGUESE LUCENE PORTUGUESE MINIMAL STEM FILTER PRIMARY_OUTPUT 0.038278 0.015671 0.009853 0.007898 0.088851 0.088840
Raw pair counts
Rank Stemmer Output policy TP FP FN TN Over error / possible Under error / possible
1 Radixor PRIMARY_OUTPUT 5470353 0 15999 22274113243 0 / 22274113243 15999 / 5486352
2 SNOWBALL PORTUGUESE DIRECT PRIMARY_OUTPUT 4816198 146201 670154 22273967042 146201 / 22274113243 670154 / 5486352
3 SNOWBALL PORTUGUESE LUCENE FILTER PRIMARY_OUTPUT 4816198 146201 670154 22273967042 146201 / 22274113243 670154 / 5486352
4 PORTUGUESE LUCENE PORTUGUESE STEM FILTER PRIMARY_OUTPUT 3802658 80995 1683694 22274032248 80995 / 22274113243 1683694 / 5486352
5 PORTUGUESE LUCENE PORTUGUESE LIGHT STEM FILTER PRIMARY_OUTPUT 149580 1249 5336772 22274111994 1249 / 22274113243 5336772 / 5486352
6 PORTUGUESE LUCENE PORTUGUESE MINIMAL STEM FILTER PRIMARY_OUTPUT 43329 17 5443023 22274113226 17 / 22274113243 5443023 / 5486352

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 / 22274113243 0 / 5486352

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 5486352 0 0 22274113243 0 / 22274113243 0 / 5486352

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 15999 0 0 392 0.185702% 3 211489

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