Skip to content

Text frenchsnowballstemmer

github-actions[bot] edited this page Aug 27, 2026 · 25 revisions

FrenchSnowballStemmer

French stemming by the Snowball algorithm.

public static class FrenchSnowballStemmer

Example — a masculine, a feminine and an adverb, all one key.

using Lodestar.Text.Stemming;

string masculine = FrenchSnowballStemmer.Stem("heureux");  // => heureux
string feminine = FrenchSnowballStemmer.Stem("heureuse");  // => heureux
string adverb = FrenchSnowballStemmer.Stem("heureusement");  // => heureux

Remarks — French inflects heavily at the end of the word, which is exactly what a suffix stemmer is good at: national, nationale and nationaux all reduce to national, and the -issait/-issant forms of second-group verbs reduce with their infinitive.

The algorithm uses RV alongside R1 and R2 — a region defined from the start of the word rather than from a suffix, which is what lets it protect short stems that the R1/R2 pair alone would eat. Six steps run in order, and which of them run at all depends on whether the previous one changed the word.

Input is normalised to NFC before the rules see it, so é written as a combining accent behaves like é written as one character.

Reference behaviour is nltk.stem.snowball.SnowballStemmer("french"), matched over 152 words.

Applies to — net10.0, netstandard2.0.

See alsothe stemming index, ItalianSnowballStemmer and SpanishSnowballStemmer, which share the Romance region scheme.

Members

Member What it does
FrenchSnowballStemmer.Stem The Snowball stem of one French word.

Lodestar

Project

Clone this wiki locally