Crate rphonetic

Source
Expand description

This library contains a set of phonetic algorithms from Apache commons-codec written in Rust.

It currently implements :

Please note that most of these algorithms are design for ASCII, and they are usually design for certain use case (eg. english names, …etc).

§Feature flags

There is two features that provide default rules and Default implementation for some struct. They are not enabled by default as files are embedded into code, so it might increase binary size. It’s best to provide rules by your own.

  • embedded — Shorthand for embedded_bm and embedded_dm
  • embedded_bm — Beider-Morse rules. It includes only any language and other files that are required. All file can be found in commons-codec repository
  • embedded_dm — Daitch-Mokotoff rules. They can be also found in commons-codec repository

Structs§

Enums§

  • Beider-Morse errors.
  • This represents a set of languages.
  • Supported type of names. Unless you are matching particular family name, use generic variant as it should work reasonably well for non-name words. The other variant are specifically tune for family name and may not work well for general text.
  • Errors
  • Type of rules.

Constants§

Traits§