Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.

The SPECIALIST Lexicon

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