private void digitsDashToWords(string text)
        {
            int num  = String.instancehelper_length(text);
            int num2 = 0;

            for (int i = 0; i <= num; i++)
            {
                if (i == num || String.instancehelper_charAt(text, i) == '-')
                {
                    string numberString = String.instancehelper_substring(text, num2, i);
                    NumberExpander.expandDigits(numberString, this.wordRelation);
                    this.wordRelation.addBreak();
                    num2 = i + 1;
                }
            }
        }
        private void digitsToWords(string text)
        {
            FeatureSet features = this.tokenItem.getFeatures();
            string     text2    = "";

            if (features.isPresent("nsw"))
            {
                text2 = features.getString("nsw");
            }
            if (String.instancehelper_equals(text2, "nide"))
            {
                NumberExpander.expandID(text, this.wordRelation);
            }
            else
            {
                string @string = features.getString("name");
                string text3;
                if (String.instancehelper_equals(text, @string))
                {
                    text3 = (string)this.cart.interpret(this.tokenItem);
                }
                else
                {
                    features.setString("name", text);
                    text3 = (string)this.cart.interpret(this.tokenItem);
                    features.setString("name", @string);
                }
                if (String.instancehelper_equals(text3, "ordinal"))
                {
                    NumberExpander.expandOrdinal(text, this.wordRelation);
                }
                else if (String.instancehelper_equals(text3, "digits"))
                {
                    NumberExpander.expandDigits(text, this.wordRelation);
                }
                else if (String.instancehelper_equals(text3, "year"))
                {
                    NumberExpander.expandID(text, this.wordRelation);
                }
                else
                {
                    NumberExpander.expandNumber(text, this.wordRelation);
                }
            }
        }
        private void tokenToWords(string text)
        {
            FeatureSet features = this.tokenItem.getFeatures();
            string     @string  = features.getString("name");
            int        num      = String.instancehelper_length(text);

            if (features.isPresent("phones"))
            {
                this.wordRelation.addWord(text);
            }
            else if ((String.instancehelper_equals(text, "a") || String.instancehelper_equals(text, "A")) && (this.tokenItem.getNext() == null || !String.instancehelper_equals(text, @string) || !String.instancehelper_equals((string)this.tokenItem.findFeature("punc"), "")))
            {
                this.wordRelation.addWord("_a");
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.alphabetPattern, text))
            {
                if (USEnglishTokenizer.matches(USEnglishTokenizer.romanNumbersPattern, text))
                {
                    this.romanToWords(text);
                }
                else if (USEnglishTokenizer.matches(USEnglishTokenizer.illionPattern, text) && USEnglishTokenizer.matches(USEnglishTokenizer.usMoneyPattern, (string)this.tokenItem.findFeature("p.name")))
                {
                    this.wordRelation.addWord(text);
                    this.wordRelation.addWord("dollars");
                }
                else if (USEnglishTokenizer.matches(USEnglishTokenizer.drStPattern, text))
                {
                    this.drStToWords(text);
                }
                else if (String.instancehelper_equals(text, "Mr"))
                {
                    this.tokenItem.getFeatures().setString("punc", "");
                    this.wordRelation.addWord("mister");
                }
                else if (String.instancehelper_equals(text, "Mrs"))
                {
                    this.tokenItem.getFeatures().setString("punc", "");
                    this.wordRelation.addWord("missus");
                }
                else if (num == 1 && Character.isUpperCase(String.instancehelper_charAt(text, 0)) && String.instancehelper_equals((string)this.tokenItem.findFeature("n.whitespace"), " ") && Character.isUpperCase(String.instancehelper_charAt((string)this.tokenItem.findFeature("n.name"), 0)))
                {
                    features.setString("punc", "");
                    string text2 = String.instancehelper_toLowerCase(text);
                    if (String.instancehelper_equals(text2, "a"))
                    {
                        this.wordRelation.addWord("_a");
                    }
                    else
                    {
                        this.wordRelation.addWord(text2);
                    }
                }
                else if (!this.isStateName(text))
                {
                    if (num > 1 && !this.isPronounceable(text))
                    {
                        NumberExpander.expandLetters(text, this.wordRelation);
                    }
                    else
                    {
                        this.wordRelation.addWord(String.instancehelper_toLowerCase(text));
                    }
                }
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.dottedAbbrevPattern, text))
            {
                object obj  = ".";
                object obj2 = "";

                CharSequence charSequence = CharSequence.Cast(obj);

                CharSequence charSequence2 = CharSequence.Cast(obj2);

                NumberExpander.expandLetters(String.instancehelper_replace(text, charSequence2, charSequence), this.wordRelation);
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.commaIntPattern, text))
            {
                object       obj4          = ",";
                object       obj3          = "";
                object       obj2          = obj4;
                CharSequence charSequence  = CharSequence.Cast(obj4);
                CharSequence charSequence3 = CharSequence.Cast(obj3);
                string       text3         = String.instancehelper_replace(text, charSequence3, charSequence);
                object       obj5          = "'";
                obj2         = "";
                charSequence = CharSequence.Cast(obj5);
                CharSequence charSequence4 = charSequence;
                charSequence = CharSequence.Cast(obj2);
                NumberExpander.expandReal(String.instancehelper_replace(text3, charSequence4, charSequence), this.wordRelation);
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.sevenPhoneNumberPattern, text))
            {
                int    num2         = String.instancehelper_indexOf(text, 45);
                string numberString = String.instancehelper_substring(text, 0, num2);
                string text4        = String.instancehelper_substring(text, num2 + 1);
                NumberExpander.expandDigits(numberString, this.wordRelation);
                this.wordRelation.addBreak();
                NumberExpander.expandDigits(text4, this.wordRelation);
            }
            else if (this.matchesPartPhoneNumber(text))
            {
                string text2 = (string)this.tokenItem.findFeature("punc");
                if (String.instancehelper_equals(text2, ""))
                {
                    this.tokenItem.getFeatures().setString("punc", ",");
                }
                NumberExpander.expandDigits(text, this.wordRelation);
                this.wordRelation.addBreak();
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.numberTimePattern, text))
            {
                int    num2         = String.instancehelper_indexOf(text, 58);
                string numberString = String.instancehelper_substring(text, 0, num2);
                string text4        = String.instancehelper_substring(text, num2 + 1);
                NumberExpander.expandNumber(numberString, this.wordRelation);
                if (!String.instancehelper_equals(text4, "00"))
                {
                    NumberExpander.expandID(text4, this.wordRelation);
                }
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.digits2DashPattern, text))
            {
                this.digitsDashToWords(text);
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.digitsPattern, text))
            {
                this.digitsToWords(text);
            }
            else if (num == 1 && Character.isUpperCase(String.instancehelper_charAt(text, 0)) && String.instancehelper_equals((string)this.tokenItem.findFeature("n.whitespace"), " ") && Character.isUpperCase(String.instancehelper_charAt((string)this.tokenItem.findFeature("n.name"), 0)))
            {
                features.setString("punc", "");
                string text2 = String.instancehelper_toLowerCase(text);
                if (String.instancehelper_equals(text2, "a"))
                {
                    this.wordRelation.addWord("_a");
                }
                else
                {
                    this.wordRelation.addWord(text2);
                }
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.doublePattern, text))
            {
                NumberExpander.expandReal(text, this.wordRelation);
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.ordinalPattern, text))
            {
                string text2 = String.instancehelper_substring(text, 0, num - 2);
                NumberExpander.expandOrdinal(text2, this.wordRelation);
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.usMoneyPattern, text))
            {
                this.usMoneyToWords(text);
            }
            else if (num > 0 && String.instancehelper_charAt(text, num - 1) == '%')
            {
                this.tokenToWords(String.instancehelper_substring(text, 0, num - 1));
                this.wordRelation.addWord("percent");
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.numessPattern, text))
            {
                NumberExpander.expandNumess(String.instancehelper_substring(text, 0, num - 1), this.wordRelation);
            }
            else if (USEnglishTokenizer.matches(USEnglishTokenizer.digitsSlashDigitsPattern, text) && String.instancehelper_equals(text, @string))
            {
                this.digitsSlashDigitsToWords(text);
            }
            else if (String.instancehelper_indexOf(text, 45) != -1)
            {
                this.dashToWords(text);
            }
            else if (num > 1 && !USEnglishTokenizer.matches(USEnglishTokenizer.alphabetPattern, text))
            {
                this.notJustAlphasToWords(text);
            }
            else if (String.instancehelper_equals(text, "&"))
            {
                this.wordRelation.addWord("and");
            }
            else if (!String.instancehelper_equals(text, "-"))
            {
                this.wordRelation.addWord(String.instancehelper_toLowerCase(text));
            }
        }