pub struct LanguagePack {Show 48 fields
pub sentence_openers: &'static [&'static str],
pub name_particles: &'static [&'static str],
pub honorifics: &'static [&'static str],
pub honorific_qualifiers: &'static [&'static str],
pub pronouns: &'static [&'static str],
pub masculine_pronouns: &'static [&'static str],
pub feminine_pronouns: &'static [&'static str],
pub neuter_pronouns: &'static [&'static str],
pub plural_pronouns: &'static [&'static str],
pub masculine_titles: &'static [&'static str],
pub feminine_titles: &'static [&'static str],
pub determiners: &'static [&'static str],
pub deictic_pronouns: &'static [&'static str],
pub speech_verbs: &'static [&'static str],
pub resuming_verbs: &'static [&'static str],
pub subject_pronouns: &'static [&'static str],
pub locative_prepositions: &'static [&'static str],
pub temporal_names: &'static [&'static str],
pub abbreviations: &'static [&'static str],
pub possessive_nouns: &'static [(&'static str, &'static str, f32)],
pub possessive_copulas: &'static [&'static str],
pub appositive_modifiers: &'static [&'static str],
pub suspending_words: &'static [&'static str],
pub negators: &'static [&'static str],
pub single_filler_relations: &'static [&'static str],
pub negation_clitic: &'static str,
pub infinitive_marker: &'static str,
pub possessive_clitic: &'static str,
pub genitive_link: &'static str,
pub phrase_conjunction: &'static str,
pub relative_opener: &'static str,
pub verb_rules: &'static [VerbRule],
pub relative_rules: &'static [VerbRule],
pub phrase_rules: &'static [PhraseRule],
pub phrase_fillers: &'static [&'static str],
pub phrase_trailers: &'static [&'static str],
pub place_heads: &'static [&'static str],
pub org_heads: &'static [&'static str],
pub place_leads: &'static [&'static str],
pub place_names: &'static [&'static str],
pub thing_names: &'static [&'static str],
pub possessive_pronouns: &'static [&'static str],
pub first_person_pronouns: &'static [&'static str],
pub plural_nouns: &'static [(&'static str, &'static str, f32)],
pub plural_copulas: &'static [&'static str],
pub plural_modifiers: &'static [&'static str],
pub object_followers: &'static [&'static str],
pub possessive_tails: &'static [&'static str],
}Expand description
Everything the pipeline reads as vocabulary for one language.
Fields§
§sentence_openers: &'static [&'static str]§name_particles: &'static [&'static str]§honorifics: &'static [&'static str]§honorific_qualifiers: &'static [&'static str]§pronouns: &'static [&'static str]§masculine_pronouns: &'static [&'static str]The pronoun list cut by what it agrees with. IMPORTANT: every entry
must also appear in pronouns, which is what decides whether a word is
a pronoun at all; these only say what kind.
feminine_pronouns: &'static [&'static str]§neuter_pronouns: &'static [&'static str]§plural_pronouns: &'static [&'static str]§masculine_titles: &'static [&'static str]Titles that settle the bearer’s gender. A subset of honorifics:
“dr”, “captain” and “professor” are titles and settle nothing.
feminine_titles: &'static [&'static str]§determiners: &'static [&'static str]Words whose presence in front of a capitalized run marks it as a common noun phrase rather than a personal name.
deictic_pronouns: &'static [&'static str]Pronouns that name the speaker or the listener rather than anyone in
the story. IMPORTANT: these are never mentions. “I” is capitalized in
every sentence of first-person narration, and a graph node called i
names whoever happens to be talking.
speech_verbs: &'static [&'static str]Verbs of a dialogue tag (“said Diana”, “Heathcliff asked”): the name next to one, outside quotation marks, is the speaker of the paragraph.
resuming_verbs: &'static [&'static str]Speech verbs that carry on the previous speaker’s turn (“continued my master”), whoever the tag goes on to name.
subject_pronouns: &'static [&'static str]The pronouns that stand in subject position. IMPORTANT: only these are read as evidence about the name in front of them. An object or possessive pronoun after a name usually names someone else — “Archer looked at her” is about two people — so learning from one records the opposite of what the sentence says.
locative_prepositions: &'static [&'static str]Prepositions that take a place and essentially never take a person. “to” and “from” are absent: both take people constantly.
temporal_names: &'static [&'static str]Names of times rather than of people.
abbreviations: &'static [&'static str]§possessive_nouns: &'static [(&'static str, &'static str, f32)]§possessive_copulas: &'static [&'static str]§appositive_modifiers: &'static [&'static str]§suspending_words: &'static [&'static str]§negators: &'static [&'static str]§single_filler_relations: &'static [&'static str]Relations whose object admits exactly one subject, so two different subjects asserted over one object contradict each other.
negation_clitic: &'static strA negator that attaches as a suffix rather than standing as a word.
infinitive_marker: &'static strThe word whose infinitive complement suspends the event it names.
possessive_clitic: &'static strThe clitic marking the mention before it as a possessor.
genitive_link: &'static strThe link word in an “of” genitive: “the sister of Marco”.
phrase_conjunction: &'static strThe conjunction that closes a possessed noun phrase.
relative_opener: &'static strThe opener of a relative clause about the preceding mention.
verb_rules: &'static [VerbRule]Rules read directly from the text between two mentions.
relative_rules: &'static [VerbRule]Rules read from the same text once relative_opener is present.
phrase_rules: &'static [PhraseRule]Exact-phrase rules between two mentions.
phrase_fillers: &'static [&'static str]Words peeled from the front of the text between mentions before a phrase rule is compared.
phrase_trailers: &'static [&'static str]Words peeled from the end of it.
place_heads: &'static [&'static str]Last words of a multi-word mention that name a place.
org_heads: &'static [&'static str]Last words of a multi-word mention that name an organization.
place_leads: &'static [&'static str]First words of a multi-word mention that name a place.
place_names: &'static [&'static str]Whole names that are places.
thing_names: &'static [&'static str]Whole names that are capitalized things: languages, faiths, address terms.
possessive_pronouns: &'static [&'static str]Possessive determiners that stand for a possessor named elsewhere.
first_person_pronouns: &'static [&'static str]First-person pronouns, resolved only when the caller names the narrator.
plural_nouns: &'static [(&'static str, &'static str, f32)]Plural relational nouns for “x and y are
plural_copulas: &'static [&'static str]The copulas that introduce a plural noun or adjective.
plural_modifiers: &'static [&'static str]Words allowed between the copula and a plural noun: “are old friends”.
object_followers: &'static [&'static str]Closed-class words that may follow an object pronoun, closing the phrase it ends: “met her at the station”.
possessive_tails: &'static [&'static str]Words that may follow a possessed relational noun without making it a modifier of a later noun: “Marco’s student for two terms”.
Auto Trait Implementations§
impl Forget for LanguagePack
impl Freeze for LanguagePack
impl Move for LanguagePack
impl RefUnwindSafe for LanguagePack
impl Send for LanguagePack
impl Sync for LanguagePack
impl Unpin for LanguagePack
impl UnsafeUnpin for LanguagePack
impl UnwindSafe for LanguagePack
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more