Enum soundchange-english::Phoneme [-] [+] [src]

pub enum Phoneme {
    P,
    B,
    T,
    D,
    G,
    K,
    M,
    N,
    NG,
    F,
    V,
    TH,
    S,
    Z,
    SH,
    CH,
    J,
    R,
    L,
    H,
    Y,
    W,
    _C,
    _Q,
    _X,
    AY,
    A,
    EE,
    E,
    AI,
    I,
    OH,
    O,
    EW,
    U,
    OO,
    AW,
    UU,
    UH,
    _A,
    _E,
    _I,
    _O,
}

A phoneme for English.

While variants are named after their common respelling (slightly adjusted to fit in the ASCII and to be unique) they do not directly represent an unique sound (say, voiceless bilabial stop /p/). A phoneme rather represents an (conceptual) equivalence class for related sounds, so that it is a minimal unit that can give the difference in meaning. Different dialects of English commonly have different sounds for the same phoneme.

Variants

P
B
T
D
G
K
M
N
NG
F
V
TH
S
Z
SH
CH
J
R
L
H
Y
W
_C
_Q
_X
AY
A
EE
E
AI
I
OH
O
EW
U
OO
AW
UU
UH
_A
_E
_I
_O

Methods

impl Phoneme

fn to_char(&self) -> char

fn from_char(c: char) -> Option<Phoneme>

fn is_vowel(&self) -> bool

fn is_consonant(&self) -> bool

fn is_untranslated(&self) -> bool

fn is_short_vowel(&self) -> bool

fn is_long_vowel(&self) -> bool

fn to_short_vowel(&self) -> Phoneme

fn to_long_vowel(&self) -> Phoneme

Trait Implementations

impl Display for Phoneme

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

Derived Implementations

impl Debug for Phoneme

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

impl Copy for Phoneme

impl FromPrimitive for Phoneme

fn from_i64(__arg_0: i64) -> Option<Phoneme>

fn from_u64(__arg_0: u64) -> Option<Phoneme>

fn from_int(n: isize) -> Option<Self>

fn from_i8(n: i8) -> Option<Self>

fn from_i16(n: i16) -> Option<Self>

fn from_i32(n: i32) -> Option<Self>

fn from_uint(n: usize) -> Option<Self>

fn from_u8(n: u8) -> Option<Self>

fn from_u16(n: u16) -> Option<Self>

fn from_u32(n: u32) -> Option<Self>

fn from_f32(n: f32) -> Option<Self>

fn from_f64(n: f64) -> Option<Self>

impl Eq for Phoneme

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Phoneme

fn eq(&self, __arg_0: &Phoneme) -> bool

fn ne(&self, __arg_0: &Phoneme) -> bool