Skip to content

Extend chomsky to handle grammatical case #5

@adrianossi

Description

@adrianossi

In some languages (e.g. German), nouns are inflected based on three characteristics: number, gender, and case. We should expand chomsky to handle all three characteristics. This should also include the inflection of words that depend on the inflected word (e.g. adjectives).

Example phrase:
"for this customer"

Uninflected (and gramatically incorrect) German translation:
"für diese Kunde"

"Für" takes a noun in the accusative case. "Kunden" is the accusative singular form of Kunde (a masculine noun). Also, in this phrase "diese" depends on Kunde and must agree in gender, number, and case (here singular, masculine, accusative).

Inflected, correct translation:
"für diesen Kunden"

The complexity is easiest to summarize via the declension of the adjective:
https://en.wiktionary.org/wiki/diese

Note that in German the plural forms are identical for all genders, but are still inflected based on case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions