
Public Member Functions | |
| Bablotron ($lan) | |
| find_similar ($word, $threshold) | |
| find_similar_words ($word, $threshold) | |
| quick_spellcheck_text ($text, $threshold=5) | |
| spellcheck_text ($text, $threshold=5) | |
| spellcheck_word ($word, $threshold=5) | |
| sql_error ($query, $result) | |
| word_exists ($word) | |
Public Attributes | |
| $db | |
| $lan | |
| $words | |
Definition at line 30 of file Bablotron.php.
| Bablotron::Bablotron | ( | $ | lan | ) |
Spellchecking and finding of alternative words
Definition at line 49 of file Bablotron.php.
References $lan, and BitBase::BitBase().
Here is the call graph for this function:

| Bablotron::find_similar | ( | $ | word, | |
| $ | threshold | |||
| ) |
| Bablotron::find_similar_words | ( | $ | word, | |
| $ | threshold | |||
| ) |
Lists similar words by relevance threshold.
| word | the word | |
| threshold | the similarity threshold |
Definition at line 120 of file Bablotron.php.
References $query, $res, $result, and mDb.
Referenced by spellcheck_text(), and spellcheck_word().
| Bablotron::quick_spellcheck_text | ( | $ | text, | |
| $ | threshold = 5 | |||
| ) |
Spellchecks a line of text
| text | line of text | |
| threshold | Not used |
Definition at line 101 of file Bablotron.php.
References $results, $text, $words, and word_exists().
Here is the call graph for this function:

| Bablotron::spellcheck_text | ( | $ | text, | |
| $ | threshold = 5 | |||
| ) |
Spellchecks a line of text
| text | line of text | |
| threshold | the similarity threshold |
Definition at line 67 of file Bablotron.php.
References $results, $text, $words, find_similar_words(), and word_exists().
Here is the call graph for this function:

| Bablotron::spellcheck_word | ( | $ | word, | |
| $ | threshold = 5 | |||
| ) |
Spellchecks a word
| word | the word | |
| threshold | the similarity threshold |
Definition at line 86 of file Bablotron.php.
References $results, find_similar_words(), and word_exists().
Here is the call graph for this function:

| Bablotron::sql_error | ( | $ | query, | |
| $ | result | |||
| ) |
| Bablotron::word_exists | ( | $ | word | ) |
Checks if a word exists
| word | the word |
Definition at line 157 of file Bablotron.php.
References $query, $result, and mDb.
Referenced by quick_spellcheck_text(), spellcheck_text(), and spellcheck_word().
| Bablotron::$db |
| Bablotron::$lan |
Used to store the current language.
Definition at line 41 of file Bablotron.php.
Referenced by Bablotron().
| Bablotron::$words |
Definition at line 35 of file Bablotron.php.
Referenced by quick_spellcheck_text(), and spellcheck_text().
1.5.2