Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2018-02-12 (6 months ago) | | Not yet rated by the users | | Total: 111 This week: 1 | | All time: 8,916 This week: 468 |
|
Description | | Author |
This class can suggest words that complete strings.
It takes the name of a file that is read to extract the words to complete.
The class can take some typed letters and return an array with words that complete those letters from the text file. | |
|
Details
WordCompletions
This is a PHP Class coded using PHP 7
author: Castro Hamiltone
Purpose
The aim is to provide a sorted ( based on the percentage of the frequecny of occurrence of the suggested word in the source of words ) list of most probable completions of a word given the begining letters of the word and a source of words to be used.
Parameters
*@param $begining:- string, the begining portion of the word to be completed. e.g 'yo', 'you', or 'your' etc<br>*
*@param $words_source:- string, the filename (.txt) of the text file containing the commonly used words.<br>*
You can use a corpus from The Guternburg Project
Return
array:- possible completions with probability in percentages
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.