use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, Eq)]
#[serde(rename_all = "snake_case")]
pub struct AllowedPrepositions {
pub prepositions: Vec<String>,
}
impl AllowedPrepositions {
pub fn init() -> AllowedPrepositions {
let prepositions = vec![
"aboard",
"about",
"above",
"across",
"after",
"against",
"along",
"amid",
"among",
"around",
"as",
"at",
"before",
"behind",
"below",
"beneath",
"beside",
"between",
"beyond",
"but",
"by",
"concerning",
"considering",
"despite",
"during",
"except",
"following",
"for",
"from",
"in",
"inside",
"into",
"like",
"minus",
"near",
"next",
"of",
"off",
"on",
"onto",
"opposite",
"out",
"outside",
"over",
"past",
"per",
"plus",
"regarding",
"round",
"save",
"since",
"than",
"through",
"till",
"to",
"toward",
"under",
"underneath",
"unlike",
"until",
"up",
"upon",
"versus",
"via",
"with",
"within",
"without",
]
.iter()
.map(|s| s.to_string())
.collect();
AllowedPrepositions { prepositions }
}
}