expandReal(afterDot, wordRelation);
expandDigits(afterDot, wordRelation);
    public static void expandReal(String numberString, WordRelation wordRelation) {	int stringLength = numberString.length();	int position;	if (numberString.charAt(0) == '-') {	    // negative real numbers	    wordRelation.addWord("minus");	    expandReal(numberString.substring(1, stringLength), wordRelation);	} else if (numberString.charAt(0) == '+') {	    // prefixed with a '+'	    wordRelation.addWord("plus");	    expandReal(numberString.substring(1, stringLength), wordRelation);	} else if ((position = numberString.indexOf('e')) != -1 ||		   (position = numberString.indexOf('E')) != -1) {	    // numbers with 'E' or 'e'	    expandReal(numberString.substring(0, position), wordRelation);	    wordRelation.addWord("e");	    expandReal(numberString.substring(position + 1), wordRelation);	} else if ((position = numberString.indexOf('.')) != -1) {	    // numbers with '.'	    String beforeDot = numberString.substring(0, position);	    if (beforeDot.length() > 0) {		expandReal(beforeDot, wordRelation);	    }	    wordRelation.addWord("point");	    String afterDot = numberString.substring(position + 1);	    if (afterDot.length() > 0) {		expandReal(afterDot, wordRelation);	    }	} else {	    // everything else	    expandNumber(numberString, wordRelation);	}    }