lib/natural/brill_pos_tagger/lib/Lexicon.js
function Lexicon(language, defaultCategory, defaultCategoryCapitalised) {
  switch (language) {
    case 'EN':
      this.lexicon = englishLexicon;
      break;
    case 'DU':
      this.lexicon = dutchLexicon;
      break;
    default:
      this.lexicon = dutchLexicon;
      break;
  }
  if (defaultCategory) {
    this.defaultCategory = defaultCategory;
    if (defaultCategoryCapitalised) {
      this.defaultCategoryCapitalised = defaultCategoryCapitalised;
    }
  }
}
function Lexicon(language, defaultCategory, defaultCategoryCapitalised) {
  switch (language) {
    case 'EN':
      this.lexicon = englishLexicon;
      break;
    case 'DU':
      this.lexicon = dutchLexicon;
      break;
    default:
      this.lexicon = dutchLexicon;
      break;
  }
  if (defaultCategory) {
    this.defaultCategory = defaultCategory;
    if (defaultCategoryCapitalised) {
      this.defaultCategoryCapitalised = defaultCategoryCapitalised;
    }
  }
}
function Lexicon ( language , defaultCategory , defaultCategoryCapitalised ) { switch ( language ) { case 'EN' : this . lexicon = englishLexicon ; break ; case 'DU' : this . lexicon = dutchLexicon ; break ; default : this . lexicon = dutchLexicon ; break ; } if ( defaultCategory ) { this . defaultCategory = defaultCategory ; if ( defaultCategoryCapitalised ) { this . defaultCategoryCapitalised = defaultCategoryCapitalised ; } } }
Constructor creates a Lexicon for language
Constructor creates a Lexicon for language