We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72147bd + ce056b3 commit 6bdde7dCopy full SHA for 6bdde7d
Singularize and Pluralize using NLP/script.py
@@ -1,19 +1,19 @@
1
import inflect
2
from textblob import Word
3
4
+
5
def main():
6
u = input("Enter a word: ")
-
7
8
p = inflect.engine()
9
pl = p.plural(u)
10
11
s = Word(u).singularize()
12
13
print(f"You entered: {u}")
14
print(f"Singular form: {s}")
15
print(f"Plural form: {pl}")
16
17
18
if __name__ == "__main__":
19
main()
0 commit comments