Nanospell Spell Checking Software Components
JavaScript jQuery CKEditor TinyMCE PHP ASP.Net Classic ASP

PHP SpellChecker

Class PHPSpellCheck

  1. 1 Properties
    1. 1.1 DictionaryPath
    2. 1.2 IgnoreAllCaps
    3. 1.3 IgnoreNumeric
    4. 1.4 CaseSensitive
    5. 1.5 SuggestionTollerance
    6. 1.6 LicenceKey
  2. 2 Key Methods
    1. 2.1 didYouMean( $text )
    2. 2.2 SpellCheckWord ($word)
    3. 2.3 Suggestions( $word )
    4. 2.4 ErrorTypeWord( $word )
    5. 2.5 LoadDictionary( $dictionaryName )
    6. 2.6 ListDictionaries()
    7. 2.7 ListLiveDictionaries()
    8. 2.8 SetContext($tokens)
    9. 2.9 LoadCommonTypos( $filePath )
    10. 2.10 BuildCommonTypos($arrayOfCommonTypos)
    11. 2.11 LoadEnforcedCorrections( $filePath )
    12. 2.12 LoadCustomBannedWords( $filePath )
    13. 2.13 AddBannedWords($arrayOfBannedWords)
    14. 2.14 LoadCustomDictionary( $filePath )
    15. 2.15 AddCustomDictionaryFromArray($arrayOfWords)
    16. 2.16 LoadCustomDictionaryFromURL($url)
  3. 3 Helper Methods
    1. 3.1 tokenizeString( $text )
    2. 3.2 CorrectCase($word, $startsASentence)
    3. 3.3 BuildDictionary($ArrayOfWords)

Properties

DictionaryPath

IgnoreAllCaps

IgnoreNumeric

CaseSensitive

SuggestionTollerance

LicenceKey

Key Methods

didYouMean( $text )

SpellCheckWord ($word)

Suggestions( $word )

ErrorTypeWord( $word )

LoadDictionary( $dictionaryName )

ListDictionaries

ListLiveDictionaries()

SetContext($tokens)

LoadCommonTypos($filePath)

herat-->heart
hewas-->he was
hismelf-->himself
    ...

BuildCommonTypos($arrayOfCommonTypos)

heart","hewas-->he was","hismelf-->himself"))

LoadEnforcedCorrections( $filePath )

USA--> United States Of America || United States Army

LoadCustomBannedWords( $filePath )

AddBannedWords($arrayOfBannedWords)

LoadCustomDictionary( $filePath )

AddCustomDictionaryFromArray($arrayOfWords)

LoadCustomDictionaryFromURL($url)

Helper Methods

tokenizeString( $text )

Accurately tokenizes (string) $text into an array of tokens.

CorrectCase($word, $startsASentence)

BuildDictionary($ArrayOfWords)