phonologist
Allows you to parse phonemes in the International Phonetic Alphabet.
Usage
use ;
let = parse;
assert!;
assert_eq!;
assert!;
License
MIT or Apache 2.0
Allows you to parse phonemes in the International Phonetic Alphabet.
use phonologist::{Phoneme, feature::{Feature, ConsonantFeature, Manner}};
let (phoneme, warnings) = Phoneme::parse("t");
assert!(warnings.is_empty());
assert_eq!(phoneme.name(), "voiceless alveolar stop");
assert!(
phoneme
.features()
.contains(&Feature::Consonant(ConsonantFeature::Manner(Manner::Stop)))
);
MIT or Apache 2.0