We’ve joined forces with Smartlogic to reveal smarter decisions—together.

Recommendations about Stemming Options

We have some internal email lists at MarkLogic and sometimes the information that pops up is too good not to share. Recently, we had this question:

Are there any recommendations regarding the stemming option to use among basic, advanced and decompounding? Would it be a good approach to always use the “advanced” option when enabling stemming for French?

The answer came from Mary Holstege, who built many of the MarkLogic search features.

In languages with a lot of inflections, alternative stems are fairly common and you should use advanced stemming. You end up with homonyms colliding, especially for short words. So: pretty much everything except English and Chinese. Most European languages will also see certain verb forms produce both an adjective stem and a verb stem (e.g. English “crowded” or “flying”). In English, with few inflections, this is the main case where advanced stemming buys you anything — even in the case of homonyms the stems end up the same anyway. Decompounding is mainly useful for Germanic languages that do a lot of noun compound formation (German, Dutch, Norwegian) and to a lesser extent Japanese. English would be in this camp except at some point in our linguistic past we decided to put spaces in our noun compounds (French influence, probably) so you don’t get anything out of decompounding.

I would also add, that if you are doing stemmed searches in languages that care about accents (like French) you’ll get better results with explicitly diacritic-sensitive searches (assuming you spelled your French words with the correct accents), and likewise for German you’ll get better results if you spell your nouns with Capital Letters the German Way and use case-sensitive searches. It so happens the stemmers are sensitive to that detail.

Start a discussion

Connect with the community

STACK OVERFLOW

EVENTS

GITHUB COMMUNITY

Most Recent

View All

The Future Is Already Here — It’s Just Not Very Evenly Distributed

Visionaries have cracked the code to achieving data agility - and it involves active metadata. Read this post to learn more about the patterns they use.
Read Article

Being a Visionary Isn’t Always Easy

Gartner has recognized MarkLogic as a Visionary in the Magic Quadrant for Cloud Database Management Systems. Our VP of Strategy Chuck Hollis explains what being a “visionary” means – to us and our customers.
Read Article

Log4j: An Update On “LogJam”

Get answers about the potential impact of the internet-wide Log4j vulnerability on MarkLogic environments
Read Article
This website uses cookies.

By continuing to use this website you are giving consent to cookies being used in accordance with the MarkLogic Privacy Statement.