Inflectional Variants Table

I. Inputs

II. Outputs

  • File: inflVarsTable.data
  • Format:
    Base FormInflectional VariantCategoryinflection*

    * inflection: simple inflection + spvar

III. Algorithm

  • Get inflectional variants
    shell>GetInflectionalVariantsTable inflVars.data.ascii inflVarsTable.data.org
    • Read in inflVars.data.ascii
    • Go through each line and print out (to inflVarsTable.data.org)
      • base form (lowercase)
      • inflectional variant (lowercase)
      • category (in name)
      • inflection (simple inflection in name)

  • Get spelling variants
    shell>GetSpellVars LEXICON.ascii spellVarsTable.data.org
    • Read in LEXICON.ascii and convert LexRecords to Java Objects
    • Go through each LexRecord
      • combine citation and spelling variants (lowercase)
      • for each possible pair of base|spvar, print out (to spellVarsTable.data.org)
        • base form
        • spellingVars
        • category (in name)
        • spvar

  • Combine spellVars and inflVars and then sort and unify
    shell>cat inflVarsTable.data.org spellVarsTable.data.org |sort -u > inflVarsTable.data

  • Check pure ASCII