- There should be only one editing.
- No change in the first and last character.
- Replace "oo" with "u"
- If the word has 3 characters and ends with consonant, then no change.
- If a character get repeated twice continuously, replace the first occurrence of that character with "m".
- Replace first occurrence of "n" with "m".
- If a vowel comes before a consonant. Insert "m" between them. The following preference is given [u,o,e,i,a]
- If a consonant comes before a vowel, insert "m" before that consonant.
- Replace multiple continuous occurrrence of "m" with single "m".
You just need to run the main.py using following command:
python3 main.py
or
python main.py
depending on the version of python installed.
Hello Bro!
Hemlo Bmro!
Wanna Meet?
Wamna met?
So, yeah you have fun with this new vocabulary. But certainly you aren't happy with certain words you get. So consider adding new rules or modifying old ones.
- Add new rule in "Rules for new vocabulary" and add the required code in main.py.
- Afraid you can't code. No problem. Just add the rule in "Rules for new vocabulary" and add [new rule] after your new rule and we will write the code for you.