pub struct QuestionLexiconSummary {
pub language: String,
pub vocabulary: Vec<String>,
pub interrogative_openers: Vec<String>,
pub auxiliary_openers: Vec<String>,
pub function_words: Vec<String>,
pub tier_base_basis_points: usize,
pub tier_minimum_ranked_words: usize,
}Expand description
A read-only view of the seed lexicon the generator reads, so a grounding test can pin the data to the behavior it drives (R13) without the generator having to expose its internal tables.
Fields§
§language: StringThe language tag this summary describes (en, ru, hi, zh).
vocabulary: Vec<String>Ranked vocabulary surfaces, most frequent first (ties broken alphabetically).
interrogative_openers: Vec<String>interrogative_opener role members, sorted.
auxiliary_openers: Vec<String>auxiliary_opener role members, sorted.
function_words: Vec<String>function_word role members, sorted.
tier_base_basis_points: usizeBase frequency tier in basis points (1000 bp = the top 10%).
tier_minimum_ranked_words: usizeMinimum number of ranked words a tier may shrink to.
Trait Implementations§
Source§impl Clone for QuestionLexiconSummary
impl Clone for QuestionLexiconSummary
Source§fn clone(&self) -> QuestionLexiconSummary
fn clone(&self) -> QuestionLexiconSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QuestionLexiconSummary
impl Debug for QuestionLexiconSummary
impl Eq for QuestionLexiconSummary
Source§impl PartialEq for QuestionLexiconSummary
impl PartialEq for QuestionLexiconSummary
impl StructuralPartialEq for QuestionLexiconSummary
Auto Trait Implementations§
impl Freeze for QuestionLexiconSummary
impl RefUnwindSafe for QuestionLexiconSummary
impl Send for QuestionLexiconSummary
impl Sync for QuestionLexiconSummary
impl Unpin for QuestionLexiconSummary
impl UnsafeUnpin for QuestionLexiconSummary
impl UnwindSafe for QuestionLexiconSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.