use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, Eq)]
#[serde(rename_all = "snake_case")]
pub struct AllowedDeterminers {
pub(crate) determiners: Vec<String>,
}
impl AllowedDeterminers {
pub(crate) fn init() -> AllowedDeterminers {
let determiners = vec![
"my",
"our",
"your",
"his",
"her",
"its",
"their",
"first",
"second",
"third",
"next",
"last",
"much",
"some",
"no",
"any",
"many",
"enough",
"several",
"little",
"all",
"lot of",
"plenty of",
"another",
"a",
"an",
"the",
"each",
"every",
"neither",
"either",
"one",
"two",
"three",
"ten",
"fifty",
"hundred",
"thousand",
]
.iter()
.map(|s| s.to_string())
.collect();
AllowedDeterminers { determiners }
}
}