dev-master
9999999-dev https://github.com/thephpleague/cp1simple urban dictionary
MIT
The Requires
- php >=5.3.0
The Development Requires
wilson cp1
Wallogit.com
2017 © Pedro Peláez
simple urban dictionary
Urban dictionary is a package that stores urban words (slangs) and their meanings in an associative array. It also stores examples of how each urban word is used. The meaning of urban words can be edited, and words can be deleted from the dictionary., (*2)
The package also ranks words in a sentence based on the number of occurrence of each word in any given sentence., (*3)
The package contains the following classes - UrbanWords: contains the array where urban words are stored i.e. the dictionary - Crud: contains methods to read words from the dictionary, add new words, update the meaning of existing words, and delete words. - Ranking: contains methods to count the occurrences of words in any given sentence and rank the words based on their occurrence., (*4)
via composer, (*5)
$ composer require wilson/cp1
$array = ["slang"=>"word", "description"=>"meaning of word", "sample-sentence"=>"example usage"]; Crud::create($array);
$arr = Crud::getAll();
$arr = Crud::find("word");
Crud::update("word", "field to update", "new value");
Crud::delete("word");
$sampleSentence = "a sample sentence..."; print_r(Ranking::rank($sampleSentence));
If the folder containing your test classes is "tests", (*6)
$ phpunit tests
Please check out CHANGELOG file for information on what has changed recently., (*7)
Please check out CONTRIBUTING file for detailed contribution guidelines., (*8)
If you discover any security related issues, please email wilson.omokoro@andela.com instead of using the issue tracker., (*9)
Urban Dictionary is maintained by Wilson Omokoro., (*10)
UrbanDictionary is released under the MIT Licence. See the bundled LICENSE file for more details., (*11)
simple urban dictionary
MIT
wilson cp1