diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-28 22:07:36 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-28 22:07:36 +0100 |
| commit | 4b97729533f744b92b3aa6ea85468a4c6fffd8f6 (patch) | |
| tree | 33d6d7f02f84cd0684ad6e8aff0ea4c742e9dadf /crates/cli/src/inflection.rs | |
| parent | 765b569282c0494b2c7bac54d895a63b0577072a (diff) | |
| download | mihi-4b97729533f744b92b3aa6ea85468a4c6fffd8f6.tar.gz mihi-4b97729533f744b92b3aa6ea85468a4c6fffd8f6.zip | |
Ensure that the locative is singular-only unless defective
The only case in which the locative form makes sense to be given is for
words which are actually defective and only have a plural
form (e.g. Athēnae). Other than that, it makes no sense to provide
solutions like 'domibus', which have never been attested and are weird
to think about.
As a corollary, the inflection tests have been expanded with the
examples on 'Athēnae' and 'domus', so we ensure the locative behaves as
expected.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'crates/cli/src/inflection.rs')
| -rw-r--r-- | crates/cli/src/inflection.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/cli/src/inflection.rs b/crates/cli/src/inflection.rs index b08942f..8799e9b 100644 --- a/crates/cli/src/inflection.rs +++ b/crates/cli/src/inflection.rs @@ -191,6 +191,10 @@ mod tests { "Rōma | Rōma | Rōmam | Rōmae | Rōmae | Rōmā | Rōmae", ); assert_noun_table( + "Athēnae, Athēnārum", + "Athēnae | Athēnae | Athēnās | Athēnārum | Athēnīs | Athēnīs | Athēnīs", + ); + assert_noun_table( "lupus, lupī", "lupus, lupī | lupe, lupī | lupum, lupōs | lupī, lupōrum | lupō, lupīs | lupō, lupīs", ); @@ -238,7 +242,10 @@ mod tests { "cornū, cornūs", "cornū, cornua | cornū, cornua | cornū, cornua | cornūs, cornuum | cornuī, cornibus | cornū, cornibus", ); - // TODO: domus + assert_noun_table( + "domus, domūs/domī", + "domus, domūs | domus, domūs | domum, domūs/domōs | domūs/domī, domuum/domōrum | domuī/domō/domū, domibus | domū/domō, domibus | domī, ", + ); assert_noun_table( "diēs, diēī", "diēs, diēs | diēs, diēs | diem, diēs | diēī, diērum | diēī, diēbus | diē, diēbus", |
