com.sun.labs.minion.lexmorph
Class MorphEngFrame

java.lang.Object
  extended by com.sun.labs.minion.lexmorph.MorphEngine
      extended by com.sun.labs.minion.lexmorph.MorphEngFrame
Direct Known Subclasses:
MorphEngFns

public abstract class MorphEngFrame
extends MorphEngine

This is an English specialization of MorphEngine.

See Also:
MorphEngine

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.labs.minion.lexmorph.MorphEngine
MorphEngine.CatSense, MorphEngine.RootFeatureList
 
Field Summary
protected  com.sun.labs.minion.lexmorph.Atom atom_1sg
           
protected  com.sun.labs.minion.lexmorph.Atom atom_2sg
           
protected  com.sun.labs.minion.lexmorph.Atom atom_3sg
           
protected  com.sun.labs.minion.lexmorph.Atom atom_abbrev
           
protected  com.sun.labs.minion.lexmorph.Atom atom_ableRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_adverbRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_aPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_archaic
           
protected  com.sun.labs.minion.lexmorph.Atom atom_bPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_cBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_comparativeRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_cPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_dashApostropheDashS
           
protected  com.sun.labs.minion.lexmorph.Atom atom_dashES
           
protected  com.sun.labs.minion.lexmorph.Atom atom_dashIES
           
protected  com.sun.labs.minion.lexmorph.Atom atom_dashIrr
           
protected  com.sun.labs.minion.lexmorph.Atom atom_dashMen
           
protected  com.sun.labs.minion.lexmorph.Atom atom_dashS
           
protected  com.sun.labs.minion.lexmorph.Atom atom_dashStarES
           
protected  com.sun.labs.minion.lexmorph.Atom atom_dBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_defaultRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_doerRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_dPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_eBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_ePrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_erDashEst
           
protected  com.sun.labs.minion.lexmorph.Atom atom_esDashEd
           
protected  com.sun.labs.minion.lexmorph.Atom atom_estBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_false
           
protected  com.sun.labs.minion.lexmorph.Atom atom_gBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_guessed
           
protected  com.sun.labs.minion.lexmorph.Atom atom_hasPrefix
           
protected  com.sun.labs.minion.lexmorph.Atom atom_hasSuffix
           
protected  com.sun.labs.minion.lexmorph.Atom atom_hPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_hypothesized
           
protected  com.sun.labs.minion.lexmorph.Atom atom_iCode
           
protected  com.sun.labs.minion.lexmorph.Atom atom_ierDashIest
           
protected  com.sun.labs.minion.lexmorph.Atom atom_iformBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_illegalRoot
           
protected  com.sun.labs.minion.lexmorph.Atom atom_ingRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_iPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_known
           
protected  com.sun.labs.minion.lexmorph.Atom atom_lBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_leftCompoundException
           
protected  com.sun.labs.minion.lexmorph.Atom atom_lexicalPrefixRules
           
protected  com.sun.labs.minion.lexmorph.Atom atom_mBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_miscBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_miscPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_morphCompoundRules
           
protected  com.sun.labs.minion.lexmorph.Atom atom_morphDispatch
           
protected  com.sun.labs.minion.lexmorph.Atom atom_mPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_nBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_nessRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_not13sg
           
protected  com.sun.labs.minion.lexmorph.Atom atom_not3sg
           
protected  com.sun.labs.minion.lexmorph.Atom atom_nPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_number
           
protected  com.sun.labs.minion.lexmorph.Atom atom_oPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_ordinalRules
           
protected  com.sun.labs.minion.lexmorph.Atom atom_past
           
protected  com.sun.labs.minion.lexmorph.Atom atom_pastpart
           
protected  com.sun.labs.minion.lexmorph.Atom atom_pastRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_pl
           
protected  com.sun.labs.minion.lexmorph.Atom atom_pluralRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_polysyllabic
           
protected  com.sun.labs.minion.lexmorph.Atom atom_pPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_prefix
           
protected  com.sun.labs.minion.lexmorph.Atom atom_prefixDispatch
           
protected  com.sun.labs.minion.lexmorph.Atom atom_present
           
protected  com.sun.labs.minion.lexmorph.Atom atom_prespart
           
protected  com.sun.labs.minion.lexmorph.Atom atom_rBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_rDashSt
           
protected  com.sun.labs.minion.lexmorph.Atom atom_rightCompoundException
           
protected  com.sun.labs.minion.lexmorph.Atom atom_rPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_sBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_sDashD
           
protected  com.sun.labs.minion.lexmorph.Atom atom_sDashEd
           
protected  com.sun.labs.minion.lexmorph.Atom atom_sDashEdDashStarEd
           
protected  com.sun.labs.minion.lexmorph.Atom atom_sDashStarEd
           
protected  com.sun.labs.minion.lexmorph.Atom atom_sg
           
protected  com.sun.labs.minion.lexmorph.Atom atom_sgSlashPl
           
protected  com.sun.labs.minion.lexmorph.Atom atom_sPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_suffix
           
protected  com.sun.labs.minion.lexmorph.Atom atom_superlativeRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_syllabic
           
protected  com.sun.labs.minion.lexmorph.Atom atom_tBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_thirdSingRule
           
protected  com.sun.labs.minion.lexmorph.Atom atom_tionBlock
           
protected  com.sun.labs.minion.lexmorph.Atom atom_tns
           
protected  com.sun.labs.minion.lexmorph.Atom atom_tPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_true
           
protected  com.sun.labs.minion.lexmorph.Atom atom_uPrefixes
           
protected  com.sun.labs.minion.lexmorph.Atom atom_yBlock
           
protected  Category cat_1sg
           
protected  Category cat_2sg
           
protected  Category cat_3sg
           
protected  Category cat_adj
           
protected  Category cat_anynvadjadvprefsuff
           
protected  Category cat_citySlashCountry
           
protected  Category cat_n
           
protected  Category cat_name
           
protected  Category cat_nm
           
protected  Category cat_nn
           
protected  Category cat_nnvadjadvprefsuff
           
protected  Category cat_not13sg
           
protected  Category cat_not3sg
           
protected  Category cat_npl
           
protected  Category cat_nplpp
           
protected  Category cat_npr
           
protected  Category cat_nsp
           
protected  Category cat_nvadjadvprefsuff
           
protected  Category cat_past
           
protected  Category cat_past2sg
           
protected  Category cat_past3sg
           
protected  Category cat_pastnot13sg
           
protected  Category cat_pastpart
           
protected  Category cat_ppp
           
protected  Category cat_prefix
           
protected  Category cat_prespart
           
protected  Category cat_punct
           
protected  Category cat_v
           
protected static java.lang.String className
          For identifying class when debugging or tracing rules.
protected  MorphCompoundRule compoundRule
           
protected  java.util.HashSet illegalBeginnings
           
protected  int illegalBeginningsMax
           
protected  java.util.HashSet illegalEndings
           
protected  int illegalEndingsMax
           
protected  java.util.HashSet illegalRoots
           
protected  java.util.HashSet leftCompoundExceptions
           
protected  java.util.HashSet legalRoots
           
protected  MorphCompoundRule[] morphCompoundRules
           
protected  java.util.HashSet rightCompoundExceptions
           
protected  java.util.HashSet shortYWordStrings
           
protected  java.util.HashSet sp_adjFormingPrefixes
           
protected  java.util.HashSet sp_adjPrefixes
           
protected  java.util.HashSet sp_quantityPrefixes
           
protected  java.util.HashSet sp_rulePrefixes
           
protected  Word word_0
           
protected  Word word_1
           
protected  Word word_2
           
protected  Word word_3
           
protected  Word word_un
           
 
Fields inherited from class com.sun.labs.minion.lexmorph.MorphEngine
atom_derivation, atom_form, atom_penalties, atom_penalty, atom_root, authorFlag, debugFlag, dict, maxDepth, morphRootWhenSet, testPrecheckFlag, traceFlag
 
Constructor Summary
MorphEngFrame()
           
 
Method Summary
protected  MorphCompoundRule[] convertCompoundRules(MorphRule[] ruleSet, java.lang.String newName, Lexicon dict)
          Method for converting a temporary MorphRule into a MorphCompoundRule after a Lexicon, dict, has been provided in which to make the categories for the category patterns of the MorphCompoundRule.
 MorphCompoundRule cr(java.lang.String expression, java.lang.String ruleName, Lexicon dict)
          Method for making a MorphCompoundRule.
protected  void doMorphCompoundTest(Word lex, MorphState state)
          Attempts to analyze the indicated word as a compound.
protected  void doMorphPrecheck(Word lex, MorphState state)
          Applies the morph-precheck tests to the indicated word.
 Word[] firstDecomposition(Word compoundWord)
           
 Word[] fixNonWords(Value[] nonWords)
           
 boolean illegalBeginning(java.lang.String wordString)
          Tests for illegal root strings.
 boolean illegalEnding(java.lang.String wordString)
           
 boolean illegalRoot(java.lang.String wordString)
           
protected  boolean inflectedRightCompoundException(Word word)
          Tests whether the indicated word is an inflected form of a word that is a right-compound exception (i.e., is disallowed as word2 of a compound word analysis).
protected  void initializeCompoundState(MorphState state)
          Method to initialize state variables before compound rule match.
 boolean isPlausibleFormOfCat(Word thisWord, Category cat)
          English-specific methods for guessing plausible forms and roots.
 boolean isPlausibleRootOfCat(Word thisWord, Category cat)
           
 java.util.Vector match(java.lang.String wordString, MorphRule thisRule, MorphState state, int depth, int skipnum)
          Method that determines if a word string matches the current rule.
 java.util.Vector matchCompoundRule(java.lang.String wordString, MorphState state, Word word1, Word word2, int depth)
          Determines if a word matches a compound rule for word1 and word2.
 boolean mayBeCat(MorphState state, Word word, Category cat)
          Tests whether the indicated word could be analyzed as the indicated category cat, without contradicting any constraints.
protected  boolean morphCompoundAnalysis(MorphCompoundRule[] rules, java.lang.String blockName, MorphState state, Word word1, Word word2, java.lang.String useConnector)
          Attempts the morphological analysis of the current word as a compound of the specified word1 and word2 connected by the indicated connector.
protected  java.util.Vector morphCompoundTest(Word word, MorphState state, Category category, java.util.Hashtable useCache, int pass)
          Method for testing a scratch word for possible decomposition as a run-together compound word like 'horseshoe' that is made from the concatenation of two known words.
 boolean plausibleRoot(Word word)
          Tests if this word is a plausible root word for a morphological decomposition.
 boolean plausibleWord(java.lang.String wordString)
          Tests if this word string is a plausible word for compounding or just guessing.
 boolean plausibleWord(Word word)
          Tests if this word is a plausible word for compounding or just guessing.
 boolean polysyllabic(java.lang.String str)
          Tests whether the indicated wordstring seems to have polysyllabic structure -- mostly, does it contain a vowel-consonant-vowel alternation.
 boolean polysyllabic(Word word)
          Tests whether the indicated word seems to have polysyllabic structure and caches the results in its lexical entry.
 boolean possibleRoot(Word word)
          Tests if this word is a possible root word for a morphological decomposition.
 boolean possibleRootStringTest(java.lang.String wordString)
          Tests string part of a possible root test.
 boolean possibleRootWordTest(Word word)
          Tests word part of a possible root test.
protected  void processCatSense(Word word, Category thisCat, Word thisRoot, Value[] features, int penalty)
           
 Word realOrCachedWord(java.lang.String ws)
           
 boolean syllabic(java.lang.String str)
          Tests whether the indicated wordstring seems to have syllabic structure -- mostly, does it contain a vowel, but also tests other constraints.
 boolean syllabic(Word word)
          syllabic (word) tests whether the indicated word seems to have syllabic structure and caches the results in its lexical entry.
protected  Word word1(MorphState state)
          Gets the first word of a hypothesized compound decomposition during the operation of a MorphCompoundRule.
 Word word1(Word compoundWord)
          Gets the first word of a known decomposition of a compound word.
protected  Word word2(MorphState state)
          Gets the second word of a hypothesized compound decomposition during the operation of a MorphCompoundRule.
 Word word2(Word compoundWord)
          Gets the second word of a known decomposition of a compound word.
 
Methods inherited from class com.sun.labs.minion.lexmorph.MorphEngine
addCatSense, addLeft, addRight, alphorder, alphorder, alphorder, alphorder, analyze, analyze, analyze, analyze, analyze, catPostTest, catPreTest, charIsOneOf, compareChars, compareStrings, debug, debugOff, debugOn, doAction, doNumberedAction, doOnly, doOnly, doPhaseOne, doPhaseTwo, doSubst, doTry, doTry, getFirstRuleSet, getMaxPenalty, getMorphDict, getPrefixRuleSet, getPrefixRuleSet, getpropFromPlistArray, hasKnownRoot, hasKnownRoot, initialize, initializeState, isFormOfCat, isGuessedWord, isKnownFormOfCat, isKnownInstanceOf, isKnownKindOf, isKnownRootOfCat, isKnownWord, isKnownWord, isNonnameFormOfCat, isNonpenaltyFormOfCat, isPenaltyFormOfCat, isPenaltyFormOfCat, isRootOfCat, killLeft, killRight, kthAtom, kthList, kthValue, kthWord, makeActions, makeAltState, makePatternArray, makeRealWord, makeRealWord, makeScratchWord, markDict, markDict, morph, morph, morph, morph, morph, morph, morph, morphAnalyzePrefix, morphAnalyzePrefix, morphCheck, morphCheck, morphKnown, morphPackLex, morphPackLex, morphPackLex, morphPackLex, morphPrecheck, morphPrefix, morphPrefix, morphPrefix, morphPrefix, morphPrefix, morphRoot, patternCheck, patternCheck, patternCheck, patternCheckLeft, patternCheckLeft, patternCheckLeft, recordCatSenses, recordResults, ruleName, search, setRoot, stateTrace, subMorph, testPostTest, testPreTest, trace, traceOff, traceOn, tryRules, wordIsEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

morphCompoundRules

protected MorphCompoundRule[] morphCompoundRules

leftCompoundExceptions

protected java.util.HashSet leftCompoundExceptions

rightCompoundExceptions

protected java.util.HashSet rightCompoundExceptions

illegalRoots

protected java.util.HashSet illegalRoots

legalRoots

protected java.util.HashSet legalRoots

sp_adjFormingPrefixes

protected java.util.HashSet sp_adjFormingPrefixes

sp_adjPrefixes

protected java.util.HashSet sp_adjPrefixes

sp_quantityPrefixes

protected java.util.HashSet sp_quantityPrefixes

sp_rulePrefixes

protected java.util.HashSet sp_rulePrefixes

illegalBeginnings

protected java.util.HashSet illegalBeginnings

illegalBeginningsMax

protected int illegalBeginningsMax

illegalEndings

protected java.util.HashSet illegalEndings

illegalEndingsMax

protected int illegalEndingsMax

shortYWordStrings

protected java.util.HashSet shortYWordStrings

atom_true

protected com.sun.labs.minion.lexmorph.Atom atom_true

atom_false

protected com.sun.labs.minion.lexmorph.Atom atom_false

atom_known

protected com.sun.labs.minion.lexmorph.Atom atom_known

atom_syllabic

protected com.sun.labs.minion.lexmorph.Atom atom_syllabic

atom_polysyllabic

protected com.sun.labs.minion.lexmorph.Atom atom_polysyllabic

atom_archaic

protected com.sun.labs.minion.lexmorph.Atom atom_archaic

atom_abbrev

protected com.sun.labs.minion.lexmorph.Atom atom_abbrev

atom_hypothesized

protected com.sun.labs.minion.lexmorph.Atom atom_hypothesized

atom_leftCompoundException

protected com.sun.labs.minion.lexmorph.Atom atom_leftCompoundException

atom_rightCompoundException

protected com.sun.labs.minion.lexmorph.Atom atom_rightCompoundException

atom_illegalRoot

protected com.sun.labs.minion.lexmorph.Atom atom_illegalRoot

atom_iCode

protected com.sun.labs.minion.lexmorph.Atom atom_iCode

atom_number

protected com.sun.labs.minion.lexmorph.Atom atom_number

atom_sg

protected com.sun.labs.minion.lexmorph.Atom atom_sg

atom_pl

protected com.sun.labs.minion.lexmorph.Atom atom_pl

atom_sgSlashPl

protected com.sun.labs.minion.lexmorph.Atom atom_sgSlashPl

atom_tns

protected com.sun.labs.minion.lexmorph.Atom atom_tns

atom_present

protected com.sun.labs.minion.lexmorph.Atom atom_present

atom_not3sg

protected com.sun.labs.minion.lexmorph.Atom atom_not3sg

atom_not13sg

protected com.sun.labs.minion.lexmorph.Atom atom_not13sg

atom_3sg

protected com.sun.labs.minion.lexmorph.Atom atom_3sg

atom_2sg

protected com.sun.labs.minion.lexmorph.Atom atom_2sg

atom_1sg

protected com.sun.labs.minion.lexmorph.Atom atom_1sg

atom_past

protected com.sun.labs.minion.lexmorph.Atom atom_past

atom_pastpart

protected com.sun.labs.minion.lexmorph.Atom atom_pastpart

atom_prespart

protected com.sun.labs.minion.lexmorph.Atom atom_prespart

atom_guessed

protected com.sun.labs.minion.lexmorph.Atom atom_guessed

atom_morphDispatch

protected com.sun.labs.minion.lexmorph.Atom atom_morphDispatch

atom_sBlock

protected com.sun.labs.minion.lexmorph.Atom atom_sBlock

atom_dBlock

protected com.sun.labs.minion.lexmorph.Atom atom_dBlock

atom_eBlock

protected com.sun.labs.minion.lexmorph.Atom atom_eBlock

atom_gBlock

protected com.sun.labs.minion.lexmorph.Atom atom_gBlock

atom_lBlock

protected com.sun.labs.minion.lexmorph.Atom atom_lBlock

atom_mBlock

protected com.sun.labs.minion.lexmorph.Atom atom_mBlock

atom_nBlock

protected com.sun.labs.minion.lexmorph.Atom atom_nBlock

atom_rBlock

protected com.sun.labs.minion.lexmorph.Atom atom_rBlock

atom_tBlock

protected com.sun.labs.minion.lexmorph.Atom atom_tBlock

atom_yBlock

protected com.sun.labs.minion.lexmorph.Atom atom_yBlock

atom_cBlock

protected com.sun.labs.minion.lexmorph.Atom atom_cBlock

atom_miscBlock

protected com.sun.labs.minion.lexmorph.Atom atom_miscBlock

atom_tionBlock

protected com.sun.labs.minion.lexmorph.Atom atom_tionBlock

atom_estBlock

protected com.sun.labs.minion.lexmorph.Atom atom_estBlock

atom_iformBlock

protected com.sun.labs.minion.lexmorph.Atom atom_iformBlock

atom_defaultRule

protected com.sun.labs.minion.lexmorph.Atom atom_defaultRule

atom_prefixDispatch

protected com.sun.labs.minion.lexmorph.Atom atom_prefixDispatch

atom_aPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_aPrefixes

atom_bPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_bPrefixes

atom_cPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_cPrefixes

atom_dPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_dPrefixes

atom_ePrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_ePrefixes

atom_hPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_hPrefixes

atom_iPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_iPrefixes

atom_mPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_mPrefixes

atom_nPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_nPrefixes

atom_oPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_oPrefixes

atom_pPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_pPrefixes

atom_rPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_rPrefixes

atom_sPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_sPrefixes

atom_tPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_tPrefixes

atom_uPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_uPrefixes

atom_miscPrefixes

protected com.sun.labs.minion.lexmorph.Atom atom_miscPrefixes

atom_lexicalPrefixRules

protected com.sun.labs.minion.lexmorph.Atom atom_lexicalPrefixRules

atom_morphCompoundRules

protected com.sun.labs.minion.lexmorph.Atom atom_morphCompoundRules

atom_ordinalRules

protected com.sun.labs.minion.lexmorph.Atom atom_ordinalRules

atom_pluralRule

protected com.sun.labs.minion.lexmorph.Atom atom_pluralRule

atom_thirdSingRule

protected com.sun.labs.minion.lexmorph.Atom atom_thirdSingRule

atom_pastRule

protected com.sun.labs.minion.lexmorph.Atom atom_pastRule

atom_ingRule

protected com.sun.labs.minion.lexmorph.Atom atom_ingRule

atom_doerRule

protected com.sun.labs.minion.lexmorph.Atom atom_doerRule

atom_comparativeRule

protected com.sun.labs.minion.lexmorph.Atom atom_comparativeRule

atom_superlativeRule

protected com.sun.labs.minion.lexmorph.Atom atom_superlativeRule

atom_adverbRule

protected com.sun.labs.minion.lexmorph.Atom atom_adverbRule

atom_nessRule

protected com.sun.labs.minion.lexmorph.Atom atom_nessRule

atom_ableRule

protected com.sun.labs.minion.lexmorph.Atom atom_ableRule

atom_prefix

protected com.sun.labs.minion.lexmorph.Atom atom_prefix

atom_hasPrefix

protected com.sun.labs.minion.lexmorph.Atom atom_hasPrefix

atom_suffix

protected com.sun.labs.minion.lexmorph.Atom atom_suffix

atom_hasSuffix

protected com.sun.labs.minion.lexmorph.Atom atom_hasSuffix

atom_dashApostropheDashS

protected com.sun.labs.minion.lexmorph.Atom atom_dashApostropheDashS

atom_dashStarES

protected com.sun.labs.minion.lexmorph.Atom atom_dashStarES

atom_dashES

protected com.sun.labs.minion.lexmorph.Atom atom_dashES

atom_dashS

protected com.sun.labs.minion.lexmorph.Atom atom_dashS

atom_dashIES

protected com.sun.labs.minion.lexmorph.Atom atom_dashIES

atom_dashMen

protected com.sun.labs.minion.lexmorph.Atom atom_dashMen

atom_dashIrr

protected com.sun.labs.minion.lexmorph.Atom atom_dashIrr

atom_sDashD

protected com.sun.labs.minion.lexmorph.Atom atom_sDashD

atom_sDashEd

protected com.sun.labs.minion.lexmorph.Atom atom_sDashEd

atom_sDashStarEd

protected com.sun.labs.minion.lexmorph.Atom atom_sDashStarEd

atom_esDashEd

protected com.sun.labs.minion.lexmorph.Atom atom_esDashEd

atom_sDashEdDashStarEd

protected com.sun.labs.minion.lexmorph.Atom atom_sDashEdDashStarEd

atom_rDashSt

protected com.sun.labs.minion.lexmorph.Atom atom_rDashSt

atom_ierDashIest

protected com.sun.labs.minion.lexmorph.Atom atom_ierDashIest

atom_erDashEst

protected com.sun.labs.minion.lexmorph.Atom atom_erDashEst

cat_name

protected Category cat_name

cat_citySlashCountry

protected Category cat_citySlashCountry

cat_nvadjadvprefsuff

protected Category cat_nvadjadvprefsuff

cat_nnvadjadvprefsuff

protected Category cat_nnvadjadvprefsuff

cat_anynvadjadvprefsuff

protected Category cat_anynvadjadvprefsuff

cat_punct

protected Category cat_punct

cat_npr

protected Category cat_npr

cat_nm

protected Category cat_nm

cat_nn

protected Category cat_nn

cat_n

protected Category cat_n

cat_v

protected Category cat_v

cat_adj

protected Category cat_adj

cat_prefix

protected Category cat_prefix

cat_ppp

protected Category cat_ppp

cat_nplpp

protected Category cat_nplpp

cat_npl

protected Category cat_npl

cat_nsp

protected Category cat_nsp

cat_past2sg

protected Category cat_past2sg

cat_past3sg

protected Category cat_past3sg

cat_pastnot13sg

protected Category cat_pastnot13sg

cat_past

protected Category cat_past

cat_3sg

protected Category cat_3sg

cat_2sg

protected Category cat_2sg

cat_1sg

protected Category cat_1sg

cat_not13sg

protected Category cat_not13sg

cat_not3sg

protected Category cat_not3sg

cat_pastpart

protected Category cat_pastpart

cat_prespart

protected Category cat_prespart

word_0

protected Word word_0

word_1

protected Word word_1

word_2

protected Word word_2

word_3

protected Word word_3

word_un

protected Word word_un

compoundRule

protected MorphCompoundRule compoundRule

className

protected static java.lang.String className
For identifying class when debugging or tracing rules.

Constructor Detail

MorphEngFrame

public MorphEngFrame()
Method Detail

isPlausibleFormOfCat

public boolean isPlausibleFormOfCat(Word thisWord,
                                    Category cat)
English-specific methods for guessing plausible forms and roots.


isPlausibleRootOfCat

public boolean isPlausibleRootOfCat(Word thisWord,
                                    Category cat)

cr

public MorphCompoundRule cr(java.lang.String expression,
                            java.lang.String ruleName,
                            Lexicon dict)
Method for making a MorphCompoundRule.


convertCompoundRules

protected MorphCompoundRule[] convertCompoundRules(MorphRule[] ruleSet,
                                                   java.lang.String newName,
                                                   Lexicon dict)
Method for converting a temporary MorphRule into a MorphCompoundRule after a Lexicon, dict, has been provided in which to make the categories for the category patterns of the MorphCompoundRule.


matchCompoundRule

public java.util.Vector matchCompoundRule(java.lang.String wordString,
                                          MorphState state,
                                          Word word1,
                                          Word word2,
                                          int depth)
Determines if a word matches a compound rule for word1 and word2. The variable compoundRule needs to be set before calling this.


morphCompoundTest

protected java.util.Vector morphCompoundTest(Word word,
                                             MorphState state,
                                             Category category,
                                             java.util.Hashtable useCache,
                                             int pass)
Method for testing a scratch word for possible decomposition as a run-together compound word like 'horseshoe' that is made from the concatenation of two known words. It makes an appropriate lexicon entry for word from those of the constituent words.


initializeCompoundState

protected void initializeCompoundState(MorphState state)
Method to initialize state variables before compound rule match.


morphCompoundAnalysis

protected boolean morphCompoundAnalysis(MorphCompoundRule[] rules,
                                        java.lang.String blockName,
                                        MorphState state,
                                        Word word1,
                                        Word word2,
                                        java.lang.String useConnector)
Attempts the morphological analysis of the current word as a compound of the specified word1 and word2 connected by the indicated connector.


inflectedRightCompoundException

protected boolean inflectedRightCompoundException(Word word)
Tests whether the indicated word is an inflected form of a word that is a right-compound exception (i.e., is disallowed as word2 of a compound word analysis).


match

public java.util.Vector match(java.lang.String wordString,
                              MorphRule thisRule,
                              MorphState state,
                              int depth,
                              int skipnum)
Method that determines if a word string matches the current rule. This version, in MorphEngFrame, overrides a more general one in MorphEngine, for efficiency, since the English morphology rules don't require the full generality of the more general method.

Overrides:
match in class MorphEngine

processCatSense

protected void processCatSense(Word word,
                               Category thisCat,
                               Word thisRoot,
                               Value[] features,
                               int penalty)
Specified by:
processCatSense in class MorphEngine

doMorphPrecheck

protected void doMorphPrecheck(Word lex,
                               MorphState state)
Applies the morph-precheck tests to the indicated word. Called in act2 in Morph_en


doMorphCompoundTest

protected void doMorphCompoundTest(Word lex,
                                   MorphState state)
Attempts to analyze the indicated word as a compound.


word1

protected Word word1(MorphState state)
Gets the first word of a hypothesized compound decomposition during the operation of a MorphCompoundRule.


word2

protected Word word2(MorphState state)
Gets the second word of a hypothesized compound decomposition during the operation of a MorphCompoundRule.


word1

public Word word1(Word compoundWord)
Gets the first word of a known decomposition of a compound word.


word2

public Word word2(Word compoundWord)
Gets the second word of a known decomposition of a compound word.


firstDecomposition

public Word[] firstDecomposition(Word compoundWord)

fixNonWords

public Word[] fixNonWords(Value[] nonWords)

realOrCachedWord

public Word realOrCachedWord(java.lang.String ws)

mayBeCat

public boolean mayBeCat(MorphState state,
                        Word word,
                        Category cat)
Tests whether the indicated word could be analyzed as the indicated category cat, without contradicting any constraints.


illegalBeginning

public boolean illegalBeginning(java.lang.String wordString)
Tests for illegal root strings.


illegalEnding

public boolean illegalEnding(java.lang.String wordString)

illegalRoot

public boolean illegalRoot(java.lang.String wordString)

plausibleRoot

public boolean plausibleRoot(Word word)
Tests if this word is a plausible root word for a morphological decomposition.


possibleRoot

public boolean possibleRoot(Word word)
Tests if this word is a possible root word for a morphological decomposition.


possibleRootStringTest

public boolean possibleRootStringTest(java.lang.String wordString)
Tests string part of a possible root test.


possibleRootWordTest

public boolean possibleRootWordTest(Word word)
Tests word part of a possible root test.


plausibleWord

public boolean plausibleWord(Word word)
Tests if this word is a plausible word for compounding or just guessing.


plausibleWord

public boolean plausibleWord(java.lang.String wordString)
Tests if this word string is a plausible word for compounding or just guessing.


syllabic

public boolean syllabic(java.lang.String str)
Tests whether the indicated wordstring seems to have syllabic structure -- mostly, does it contain a vowel, but also tests other constraints. -- currently it does a simple test that it contains at least one vowel ends appropriately, and consists of only letters or hyphens or underscores or apostrophes.


syllabic

public boolean syllabic(Word word)
syllabic (word) tests whether the indicated word seems to have syllabic structure and caches the results in its lexical entry. Test whether a word looks like a pronouncable word -- currently a simple test that it contains at least one vowel ends appropriately, and consists of only letters or hyphens or underscores or apostrophe's.


polysyllabic

public boolean polysyllabic(java.lang.String str)
Tests whether the indicated wordstring seems to have polysyllabic structure -- mostly, does it contain a vowel-consonant-vowel alternation.


polysyllabic

public boolean polysyllabic(Word word)
Tests whether the indicated word seems to have polysyllabic structure and caches the results in its lexical entry.