Struct soundchange-english::Word [-] [+] [src]

pub struct Word {
    // some fields omitted
}

A sequence of phonemes.

Methods

impl Word

fn from_phonemes(ps: &[Phoneme]) -> Word

Creates a word from given phonemes.

fn from_english(s: &str) -> Word

Generates a pronunciation of given English word.

fn phonemes<'a>(&'a self) -> WordPhonemes<'a>

Iterates through phonemes.

fn as_str<'a>(&'a self) -> &'a str

Returns a string notation of phonemes.

Trait Implementations

impl Display for Word

fn fmt(&self, f: &mut Formatter) -> Result

impl Debug for Word

fn fmt(&self, f: &mut Formatter) -> Result