wordsToNumbers function
Implementation
num wordsToNumbers(
String text,
) {
String formattedtext =
text.split(' ').where((element) => element != 'and').join(' ');
a = formattedtext.split(RegExp(r'[\s-]+'));
n = 0;
g = 0;
a.forEach(feach);
return n + g;
}