Generate Elixir stemmer modules from Snowball .sbl algorithm sources.
Reads every .sbl file from the algorithms directory, runs it through the
Snowball compiler pipeline (Lexer -> Analyser -> Generator), and writes
the resulting Elixir source to the output directory.
Usage
mix snowball.gen # generate all algorithms
mix snowball.gen english french # generate specific algorithmsOptions
--module-prefixis the Elixir module prefix to use for generated stemmer modules. Defaults toSnowball.Stemmers. The full module name is the prefix joined with the PascalCase algorithm suffix (for example,Text.Stemmer.Stemmers.DutchPorter).--output-diris the directory into which generated.exfiles are written. Defaults tolib/snowball/stemmers.--algorithms-diris the directory from which.sblsource files are read. Defaults tosrc/algorithms.
Language name mapping
The file stem (e.g. dutch_porter) becomes both the Elixir module
suffix in PascalCase (DutchPorter) and the language atom passed to
the generator (:dutch_porter).