Expand description
Intended to be compatible with https://github.com/MihaiValentin/lunr-languages. Each supported language has a trimmer, a stop word filter, and a stemmer. Most users will not need to use these modules directly.
Modules§
Structs§
Traits§
Functions§
- from_
code - Returns the
Language
for the given two-character ISO 639-1 language code if the language is supported. ReturnsNone
if not supported. - from_
name - Returns the
Language
for the given English language name if the language is supported. ReturnsNone
if not supported. The first letter must be capitalized. - languages
- Returns a list of all the
Language
implementations in the crate - tokenize_
whitespace - Splits a text string into a vector of individual tokens.