Are you sure you've set the parameters to :
case_sensitive = True
do_capitalize = True
do_uppercase = True
I've just tested with those param and with "paul": "keith" in change_words,json :
"Paul PAUL paul" gives "Keith KEITH keith", as expected.
You probably have set case_sensitive = False, then you always obtain "keith" independently of the case of the entry: Paul PAUL paul" gives "keith keith keith"
|