html文本区域的语法检查器 [英] Grammar checker for html text area

查看:104
本文介绍了html文本区域的语法检查器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个使用Html和PHP的项目。我有一个textarea。我可以使用html属性检查用户输入的拼写。如果有任何语法错误,我也想检查语法并限制用户提交表单。有没有办法做到这一点?即使我已经准备好使用Python或JavaScript(如果可能的话)。请帮助我!

解决方案

听起来像 LanguageTool 是你需要的。他们有一个很好的API,但请记住,每个IP地址每分钟只有20个请求。如果您需要更多信息,他们会在在本地设置上提供操作指南。


I am doing a project using Html and PHP. I have a textarea. I can check the spelling of user input using html attribute. I want to check the grammar also and to restrict the user from submitting the form if there is any grammatical mistakes. Is there any way to do this? Even I am ready to use Python or javascript if it is possible in it. Please help me!!!

解决方案

Sounds like LanguageTool is what you need. They have a nice API, but keep in mind it is limited to 20 requests per IP address per minute. If you need more, they have a how-to on setting it up locally.

这篇关于html文本区域的语法检查器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆