pub struct NounEntry {
pub lemma: String,
pub forms: HashMap<String, String>,
pub features: Vec<String>,
pub sort: Option<String>,
}Expand description
A noun entry from the lexicon database.
Fields§
§lemma: StringBase form of the noun (e.g., “dog”, “Mary”).
forms: HashMap<String, String>Irregular inflected forms: “plural” → “mice”, etc.
features: Vec<String>Grammatical/semantic features: “Animate”, “Proper”, “Countable”.
sort: Option<String>Semantic sort for type checking: “Human”, “Physical”, “Abstract”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NounEntry
impl<'de> Deserialize<'de> for NounEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NounEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NounEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NounEntry
impl RefUnwindSafe for NounEntry
impl Send for NounEntry
impl Sync for NounEntry
impl Unpin for NounEntry
impl UnwindSafe for NounEntry
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