PhoneticAlgorithm

Trait PhoneticAlgorithm 

Source
pub trait PhoneticAlgorithm {
    // Required method
    fn encode(&self, text: &str) -> Result<String>;

    // Provided method
    fn sounds_like(&self, s1: &str, s2: &str) -> Result<bool> { ... }
}
Expand description

Phonetic algorithms trait

Required Methods§

Source

fn encode(&self, text: &str) -> Result<String>

Encode a string using the phonetic algorithm

Provided Methods§

Source

fn sounds_like(&self, s1: &str, s2: &str) -> Result<bool>

Check if two strings are phonetically similar

Implementors§