[Updates] ADD French, setup file, python3 support#2
[Updates] ADD French, setup file, python3 support#2jacquesfize wants to merge 4 commits intobermi:masterfrom
Conversation
…blob/master/pluralizefr/__init__.py -Add support for Python_3 (delete unicode() call)
|
I think it's nice to have a generic library for several languages. :-)
The current version of I will add the I can upload the |
|
Sure, you can modify the code (for the uppercase support) ;) As for the Concerning the upload of |
|
I think there is a mistake: I wrote |
|
@Jacobe2169 just saw rules/french.py ... wouldn't it be better to use u"" always? I guess you used u"" if the word has at least one non ASCII character and "" otherwise; but it could be a problem if you mistype a word ("tete", for instance) and someone else corrects it to "tête" instead of u"tête" . :-) |
|
Sorry about the delay! @sblondon, sure you can integrate As for @isard question, in Python3, |
|
@Jacobe2169 finally, I reused the moz4r's pull-request for the implementation of |
Hi Bermi,
Just found your module for pluralizing and singularizing. I needed both French and English support, so I changed your code ;) For the French support, I used the implementation made by @sblondon. Then, I added Python3 support and a setup file. In order to ease the module usage, I also changed the init.py file (see Getting Started section in the README).
The French implementation is a bit rough (not using regexp), so maybe a regexp transformation would be nice ;)
Best Regards,
Jacques.