Skip to main content

LanguagePack

Struct LanguagePack 

Source
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 str

A negator that attaches as a suffix rather than standing as a word.

§infinitive_marker: &'static str

The word whose infinitive complement suspends the event it names.

§possessive_clitic: &'static str

The clitic marking the mention before it as a possessor.

§genitive_link: &'static str

The link word in an “of” genitive: “the sister of Marco”.

§phrase_conjunction: &'static str

The conjunction that closes a possessed noun phrase.

§relative_opener: &'static str

The 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 ”, as (noun, relation, base).

§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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts 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>

Converts 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)

Converts &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)

Converts &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
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Sync + Send>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send> ⓘ

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.