0

Hi all

What is purpose of inflect.engine in the following code https://sololearn.com/compiler-playground/cId9LNZp1yr2/?ref=app

8th Sep 2024, 11:24 AM
Yusof
Yusof - avatar
2 ответов
+ 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.
8th Sep 2024, 12:15 PM
Jerry Hobby
Jerry Hobby - avatar
+ 1
nice find. Here is how I would use it in Sololearn: https://sololearn.com/compiler-playground/cZt9J2uxthl7/?ref=app
9th Sep 2024, 3:06 AM
Bob_Li
Bob_Li - avatar