facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Persian(fa) Languages

AmirMohamadBabaee opened this issue · comments

commented

First, thanks for your fantastic repo. Could you let me know if you plan to support the Persian language?

Farsi numerals are supported: https://github.com/facebook/duckling/blob/main/Duckling/Numeral/FA/Rules.hs

But it looks like most dimensions do not have Farsi support.

Typically, new language support in Duckling is added by third-party developers and not the duckling team, since the Duckling team is small and has fluent understanding of a minimal set of languages (English, French, Mandarin, Cantonese).

If you would like to see more Farsi support, I encourage you to take a stab at it!

commented

Thanks for your quick reply.
I am very eager to contribute to this wonderful project, but I have no experience in Haskell. Is there a template for defining Persian rules in other dimensions?

For the code itself, your best bet would probably be to look at some of the existing implementations to understand how rules are laid out.

I'd recommend starting with some dimension other than Time, those rules tend to be very complex but others are usually much simpler.

commented

Thanks, @stroxler