简体   繁体   中英

Check grammar of user input

I am making an app that checks the user's English grammar and I wanted to know if there was a way of checking a string and correcting it if its grammar is incorrect. I know UITextChecker only corrects the words if they are wrong but not the grammar of the sentence. Are there any other methods to do so?

It looks like you need an API to help with this. Apple does not provide a grammar checking API, but Grammarly has one, but they won't share for good reason. But here is one trying to get started. https://www.grammarbot.io/post/grammarly-api-developers Maybe it can help and you can contribute to it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM