You write a phrase and include a lot of number characters (0-9), but you decide that for numbers 10 and under you would rather write the word out instead. Can you go in and edit your phrase to write out the name of each number instead of using the numeral?
Take a phrase and replace any instances of an integer from 0-10 and replace it with the English word that corresponds to that integer.
A string of the phrase in its original form (lowercase).
A string of the updated phrase that has changed the numerals to words.
i need 2 pumpkins and 3 apples
i need two pumpkins and three apples
You would update the phrase to change '2' to 'two' and '3' to 'three'.