/// <summary> /// Converts the given Roman numeral string into (word) Items in the WordRelation. /// </summary> /// <param name="romanString">The roman numeral string.</param> private void romanToWords(string romanString) { string punctuation = (string)tokenItem.findFeature("p.punc"); if (punctuation.Equals("")) { /* no preceeding punctuation */ //string n = String.valueOf(NumberExpander.expandRoman(romanString)); var n = NumberExpander.expandRoman(romanString).ToString(CultureInfo.InvariantCulture); if (kingLike(tokenItem)) { wordRelation.addWord("the"); NumberExpander.expandOrdinal(n, wordRelation); } else if (sectionLike(tokenItem)) { NumberExpander.expandNumber(n, wordRelation); } else { NumberExpander.expandLetters(romanString, wordRelation); } } else { NumberExpander.expandLetters(romanString, wordRelation); } }