I am trying to filter the words in a text file. If there are any 'comparative' and 'superlative' words in the file, I want to convert them to 'positive'.
e.g. - 'greatest' -> 'great' and so on.
I am using 'pattern' module for this. In example it says,
from pattern.en import comparative, superlative
print comparative('bad')
gives -> worse
works fine.
but, If I do:
from pattern.en import comparative, superlative, positive
print positive('worse')
It gives, 'False'
Am I doing it wrong ? Is there any way to find out 'comparative' and 'superlative' words and print the positive word of them ?