ArchimedesDigital / open_words

Open source, updated Whitaker's Words Latin Dictionary and Morphology in Python
MIT License
52 stars 13 forks source link

output: gender "C" #10

Closed nikita-moor closed 6 years ago

nikita-moor commented 6 years ago

Gender of the word "rebus" < rēs, reī is feminine. open_words outputs "C" gender, what does it mean?

[
  {
    "word": "rebus",
    "defs": [
      {
        "orth": [
          "res",
          "re"
        ],
        "senses": [
          "thing",
          "event/affair/business",
          "fact",
          "cause",
          "property",
          "[~ familiaris => property]"
        ],
        "infls": [
          {
            "ending": "ebus",
            "pos": "noun",
            "form": {
              "declension": "dative",
              "number": "plural",
              "gender": "C"
            }
          },
          {
            "ending": "ebus",
            "pos": "noun",
            "form": {
              "declension": "ablative",
              "number": "plural",
              "gender": "C"
            }
          }
        ]
      }
    ]
  }
]

P.S. Also, orth group seems incorrect in this example.

air-wreck commented 6 years ago

As a gender, "C" probably refers to common gender, indicating that a noun can take the masculine or feminine (see canis, for instance). You can see similar behavior in the original Words (see the last definition).

It is weird that open_words outputs "C" for "rebus," since the original Words appears to give this.

nikita-moor commented 6 years ago

You are right, it's from Words/inflections_package.ads:

type GENDER_TYPE is (
        X,         --  all, none, or unknown
        M,         --  Masculine
        F,         --  Feminine
        N,         --  Neuter
        C          --  Common (masculine and/or feminine)
                     );