开发者

Arabic Spell Checker API

开发者 https://www.devze.com 2023-02-19 18:16 出处:网络
I searched about spell checker API from google but the arabic language is not supported there if any one can help开发者_如何学Python me to find the AP that support arabic language or any other good id

I searched about spell checker API from google but the arabic language is not supported there if any one can help开发者_如何学Python me to find the AP that support arabic language or any other good idea.


AFAIK none of Google's spell check APIs are documented/supported, and as such they could break at any time.

It is possible to spell check using the Google translate api:

http://translate.google.com/translate_a/t?client=t&text=كيف حاك&sc=1

Returns:

[[["كيف حاك","كيف حاك","",""]],,"ar",,,,,["كيف \u003cb\u003e\u003ci\u003eحالك\u003c/i\u003e\u003c/b\u003e","كيف حالك"],[],33]

Scroll to the right and you'll see the corrected results كيف حالك at the end.

The sc=1 parameter includes the spell check in the results. You'll have to figure out how to parse the JSON results to get the corrected spelling,


You could try this one:

https://github.com/Arabic-Spell-Checker/spellchecker-api-client

It has a REST API and provides dictionary management functionalities.

Disclaimer: I am the developer of this.

0

精彩评论

暂无评论...
验证码 换一张
取 消