use verba::noun as N; pub fn create_noun(nom: String, gen: String, gender: N::Gender) -> N::Regular { match N::Regular::new(nom, gen, gender) { Ok(noun) => noun, Err(_) => panic!("Failed to create noun porta, portae."), } } /// Create a regular first declension noun. pub fn create_porta_portae() -> N::Regular { create_noun("porta".to_string(), "portae".to_string(), N::Gender::Feminine) } /// Create a regular second declension masculine noun. pub fn create_dominus_domini() -> N::Regular { create_noun("dominus".to_string(), "dominī".to_string(), N::Gender::Masculine) }