wordsToNumber function
Returns equivalent number in int of the given words
Implementation
int? wordsToNumber(String words) {
if (words.isEmpty) return null;
words = words.replaceAll(RegExp(faOrdinalRegExp, caseSensitive: false), '');
// removing the ordinal suffix
words = words.withoutOrdinalSuffix;
return _compute(_tokenize(words));
}