UTSAVS26 / PySnippets

Collection of reusable Python code snippets for all.
https://sites.google.com/view/pysnippets/
MIT License
27 stars 66 forks source link

[Feature Request]: Replace numbers with corresponding word and vice versa #243

Open Panda8Bamboo opened 2 hours ago

Panda8Bamboo commented 2 hours ago

Is there an existing issue for this?

Feature Description

Replace numbers with corresponding word in a string and vice versa in string_manipulation

3 functions:

  1. One to replace just numbers to corresponding word "6 years ago there were five." becomes "Six years ago there were five."

  2. One to do the inverse "There are eight men but now 5." becomes "There are 8 men but now 5."

  3. And one that swaps both "6 years ago there were eight men" becomes "Six years ago there were 8 men"

Record

Full Name

Amber

Participant Role

GSOC

github-actions[bot] commented 1 hour ago

🙌 Thank you for bringing this issue to our attention! We appreciate your input and will investigate it as soon as possible.

Feel free to join our community on Discord to discuss more!