apertium/apertium-python

Add multiple spellings

Opened this issue · 12 comments

I keep doing analyse() instead of analyze() :(

juuz0 commented

Can I take this?
Would I need to provide an alternative for the class name too (Analyzer) or just providing an alternative name for analyze (analyse) is enough?

Can I fix it ?

@juuz0 I guess that would be better yep.

@b-thebest I don't know, you can try!

@ftyers I don't find occurance of analyse(), I think its already been done

@b-thebest that's the issue, the code currently has the american spelling (with a z) and it would be nice if it also had the spelling with an s.

@mr-martian So, we need to change occurance of "analyze" ==> "analyse"
Is that so?

not simply replace
we want both

that is, we want an alias for the function

juuz0 commented

just providing an alias for the analyze() function name would be easy tho, I did that a few days ago :/
but couldn't find a way to provide an alias to the Analyzer class :/

juuz0 commented

Hello, I just added a pull request to add the aliases for both Analyzer(Analyser) and analyze(analyse), could you please check? :)

@ftyers if the issue is not resolved can I work on this issue

@max-keviv there is a PR #87 that I approved, but left a question on that never got answered. So only if you can find other interfaces in need of alternative spellings.