Condition thirdDotConditionQPM = new PunctuationValueCondition('.');
Condition thirdDotConditionBID = new PunctuationValueCondition('.');
Condition thirdDotConditionPRN = new PunctuationValueCondition('.');
Condition thirdDotConditionTID = new PunctuationValueCondition('.');
startState.addTransition(new TextValueCondition("q", true),
leftAbbreviateQState);
startState.addTransition(new TextValueCondition("b", true),
leftAbbreviateBState);
startState.addTransition(new TextValueCondition("p", true),
leftAbbreviatePState);
startState.addTransition(new TextValueCondition("t", true),
leftAbbreviateTState);
startState.addTransition(new AnyCondition(), startState);
leftAbbreviateQState.addTransition(firstDotConditionQ, firstDotQState);
leftAbbreviateQState.addTransition(new AnyCondition(), startState);
firstDotQState.addTransition(new TextValueCondition("a", true),
middleAbbreviateQtoAState);
firstDotQState.addTransition(new TextValueCondition("d", true),
middleAbbreviateQtoDState);
firstDotQState.addTransition(new TextValueCondition("h", true),
middleAbbreviateQtoHState);
firstDotQState.addTransition(new TextValueCondition("i", true),
middleAbbreviateQtoIState);
firstDotQState.addTransition(new TextValueCondition("m", true),
middleAbbreviateQtoMState);
firstDotQState.addTransition(new TextValueCondition("o", true),
middleAbbreviateQtoOState);
firstDotQState.addTransition(new TextValueCondition("w", true),
middleAbbreviateQtoWState);
firstDotQState.addTransition(new TextValueCondition("p", true),
middleAbbreviateQtoPState);
firstDotQState.addTransition(new AnyCondition(), startState);
middleAbbreviateQtoAState.addTransition(secondDotConditionQA,
secondDotQtoAState);
middleAbbreviateQtoAState.addTransition(new AnyCondition(), startState);
middleAbbreviateQtoDState.addTransition(secondDotConditionQD,
secondDotQtoDState);
middleAbbreviateQtoDState.addTransition(new AnyCondition(), startState);
middleAbbreviateQtoHState.addTransition(secondDotConditionQH,
secondDotQtoHState);
middleAbbreviateQtoHState.addTransition(new AnyCondition(), startState);
middleAbbreviateQtoIState.addTransition(secondDotConditionQI,
secondDotQtoIState);
middleAbbreviateQtoIState.addTransition(new AnyCondition(), startState);
middleAbbreviateQtoMState.addTransition(secondDotConditionQM,
secondDotQtoMState);
middleAbbreviateQtoMState.addTransition(new AnyCondition(), startState);
middleAbbreviateQtoOState.addTransition(secondDotConditionQO,
secondDotQtoOState);
middleAbbreviateQtoOState.addTransition(new AnyCondition(), startState);
middleAbbreviateQtoWState.addTransition(secondDotConditionQW,
secondDotQtoWState);
middleAbbreviateQtoWState.addTransition(new AnyCondition(), startState);
middleAbbreviateQtoPState.addTransition(secondDotConditionQP,
secondDotQtoPState);
middleAbbreviateQtoPState.addTransition(new AnyCondition(), startState);
secondDotQtoAState.addTransition(new TextValueCondition("d", true),
rightAbbreviateQADState);
secondDotQtoAState.addTransition(new AnyCondition(), startState);
secondDotQtoDState.addTransition(new TextValueCondition("s", true),
rightAbbreviateQDSState);
secondDotQtoDState.addTransition(new AnyCondition(), startState);
secondDotQtoHState.addTransition(new TextValueCondition("s", true),
rightAbbreviateQHSState);
secondDotQtoHState.addTransition(new AnyCondition(), startState);
secondDotQtoIState.addTransition(new TextValueCondition("d", true),
rightAbbreviateQIDState);
secondDotQtoIState.addTransition(new AnyCondition(), startState);
secondDotQtoMState.addTransition(new TextValueCondition("t", true),
rightAbbreviateQMTState);
secondDotQtoMState.addTransition(new AnyCondition(), startState);
secondDotQtoOState.addTransition(new TextValueCondition("d", true),
rightAbbreviateQODState);
secondDotQtoOState.addTransition(new AnyCondition(), startState);
secondDotQtoWState.addTransition(new TextValueCondition("k", true),
rightAbbreviateQWKState);
secondDotQtoWState.addTransition(new AnyCondition(), startState);
secondDotQtoAState.addTransition(new TextValueCondition("m", true),
rightAbbreviateQAMState);
secondDotQtoAState.addTransition(new AnyCondition(), startState);
secondDotQtoPState.addTransition(new TextValueCondition("m", true),
rightAbbreviateQPMState);
secondDotQtoPState.addTransition(new AnyCondition(), startState);
secondDotBtoIState.addTransition(new TextValueCondition("d", true),
endState);
secondDotBtoIState.addTransition(new AnyCondition(), startState);
rightAbbreviateQADState.addTransition(thirdDotConditionQAD, endState);
rightAbbreviateQADState.addTransition(new AnyCondition(), startState);
rightAbbreviateQDSState.addTransition(thirdDotConditionQDS, endState);
rightAbbreviateQDSState.addTransition(new AnyCondition(), startState);
rightAbbreviateQHSState.addTransition(thirdDotConditionQHS, endState);
rightAbbreviateQHSState.addTransition(new AnyCondition(), startState);
rightAbbreviateQIDState.addTransition(thirdDotConditionQID, endState);
rightAbbreviateQIDState.addTransition(new AnyCondition(), startState);
rightAbbreviateQMTState.addTransition(thirdDotConditionQMT, endState);
rightAbbreviateQMTState.addTransition(new AnyCondition(), startState);
rightAbbreviateQODState.addTransition(thirdDotConditionQOD, endState);
rightAbbreviateQODState.addTransition(new AnyCondition(), startState);
rightAbbreviateQWKState.addTransition(thirdDotConditionQWK, endState);
rightAbbreviateQWKState.addTransition(new AnyCondition(), startState);
rightAbbreviateQAMState.addTransition(thirdDotConditionQAM, endState);
rightAbbreviateQAMState.addTransition(new AnyCondition(), startState);
rightAbbreviateQPMState.addTransition(thirdDotConditionQPM, endState);
rightAbbreviateQPMState.addTransition(new AnyCondition(), startState);
leftAbbreviateBState.addTransition(firstDotConditionB, firstDotBState);
leftAbbreviateBState.addTransition(new AnyCondition(), startState);
firstDotBState.addTransition(new TextValueCondition("i", true),
middleAbbreviateBtoIState);
firstDotBState.addTransition(new AnyCondition(), startState);
middleAbbreviateBtoIState.addTransition(secondDotConditionBI,
secondDotBtoIState);
middleAbbreviateBtoIState.addTransition(new AnyCondition(), startState);
secondDotBtoIState.addTransition(new TextValueCondition("d", true),
rightAbbreviateBIDState);
secondDotBtoIState.addTransition(new AnyCondition(), startState);
rightAbbreviateBIDState.addTransition(thirdDotConditionBID, endState);
leftAbbreviatePState.addTransition(firstDotConditionP, firstDotPState);
leftAbbreviatePState.addTransition(new AnyCondition(), startState);
leftAbbreviateTState.addTransition(firstDotConditionT, firstDotTState);
leftAbbreviateTState.addTransition(new AnyCondition(), startState);
firstDotPState.addTransition(new TextValueCondition("r", true),
middleAbbreviatePtoRState);
firstDotPState.addTransition(new AnyCondition(), startState);
firstDotTState.addTransition(new TextValueCondition("i", true),
middleAbbreviateTtoIState);
firstDotTState.addTransition(new AnyCondition(), startState);
middleAbbreviatePtoRState.addTransition(secondDotConditionPR,
secondDotPtoRState);
middleAbbreviatePtoRState.addTransition(new AnyCondition(), startState);
middleAbbreviateTtoIState.addTransition(secondDotConditionTI,
secondDotTtoIState);
middleAbbreviateTtoIState.addTransition(new AnyCondition(), startState);
secondDotPtoRState.addTransition(new TextValueCondition("n", true),
rightAbbreviatePRNState);
secondDotPtoRState.addTransition(new AnyCondition(), startState);
secondDotTtoIState.addTransition(new TextValueCondition("d", true),
rightAbbreviateTIDState);
secondDotTtoIState.addTransition(new AnyCondition(), startState);
rightAbbreviatePRNState.addTransition(thirdDotConditionPRN, endState);
rightAbbreviateTIDState.addTransition(thirdDotConditionTID, endState);