html文本区域的语法检查器 [英] Grammar checker for html text area
问题描述
我正在做一个使用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屋!