开发者

PHP function to check if the string is a properly-formatted English sentence?

开发者_如何学CIs there any built-in function for that? If not, then how would it look like?


You may have a look at the results of Natural Language Processing, which is a research field of its own.

Unfortunately, there is no built-in PHP function, no ready-to-use algorithm, no 100%-reliable method to achieve what you want.


No. Things like that are also not easily to detect as there are tons of possibilities to make valid sentences.

But you could look for a thesaurus which can be either embedded into php as a library or executed via stystem()

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜