0
Hi all
What is purpose of inflect.engine in the following code https://sololearn.com/compiler-playground/cId9LNZp1yr2/?ref=app
2 Respostas
+ 1
inflect.py - Accurately generate plurals, singular nouns, ordinals, indefinite articles, and word-based representations of numbers. This functionality is limited to English.
IF you were to input "he", or "Yusuf", or "The cat", it would analyze and adapt the string for proper grammar.
While the code you have does not run, you can research packages like that with a quick google. I've never used that package, but I'm sure it's quite useful for proofreading.
+ 1
nice find.
Here is how I would use it in Sololearn:
https://sololearn.com/compiler-playground/cZt9J2uxthl7/?ref=app