سؤال

I used php extension pspell to identify existence of english words, however, some combinations return from the server as true words when infact they are not.

For instance the combination "kt" returns "true", I am not sure why.

Is there a way to "harden" the vocabilary that comes within pspell? and if so, how can I do that?

Will enchant give better results? ( i`m trying to enable to on my wampserver ).

Thanks.

هل كانت مفيدة؟

المحلول

As of php 5.3. Pspell is no longer supported/bundled. Instead you can use the enchant which is bundled by default in 5.3.

Kt is a legal word, just google it. One option would be to use pspell_config_ignore to ignore very short words.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top