pub struct WordInfo {
pub word: String,
pub phonemes: Vec<String>,
pub syllable_count: usize,
pub syllables: Vec<String>,
pub stress_pattern: Vec<i32>,
pub stress_display: String,
pub variant_count: usize,
}Expand description
Information about a single word’s phonetic properties.
Fields§
§word: StringNormalized (uppercase) spelling.
phonemes: Vec<String>ARPAbet phoneme sequence (e.g. ["HH", "AH0", "L", "OW1"]).
syllable_count: usizeNumber of syllables.
syllables: Vec<String>Estimated syllable boundaries (e.g. ["HEL", "LO"]).
stress_pattern: Vec<i32>Stress values per syllable: 0=unstressed, 1=primary, 2=secondary.
stress_display: StringHuman-readable stress display (e.g. "hel-LO").
variant_count: usizeNumber of pronunciation variants in the dictionary.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WordInfo
impl RefUnwindSafe for WordInfo
impl Send for WordInfo
impl Sync for WordInfo
impl Unpin for WordInfo
impl UnsafeUnpin for WordInfo
impl UnwindSafe for WordInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more