PHP Classes

lib_dictionary: Check text spelling with a dictionary in MySQL

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 425 All time: 6,358 This week: 488Up
Version License PHP version Categories
lib_dictionary 1.1.1GNU General Publi...4.0Databases, Text processing
Description 

Author

This package can be used to check spelling of text using a dictionary stored in a MySQL database. It can:

- Check whether a word exists in the dictionary
- Check the spelling of a given phrase using HTML tags to highlight with a different color the words that may be misspelled
- Add words from a file
- Search for words similar to a given word with length that may differ no more than a given size

Picture of David Frendin
  Performance   Level  
Name: David Frendin <contact>
Classes: 2 packages by
Country: Sweden Sweden
Age: 38
All time rank: 280421 in Sweden Sweden
Week rank: 227 Up3 in Sweden Sweden Up

Details

::mySQL table To create the mySQL dictionary table, just run the provided "database.sql" in phpMyAdmin. ::The wordlist First of all, you will need to have a wordlist to populate your database dictionary table with. For an English wordlist, I recomend that you download the wordlist.txt from: http://www.phpclasses.org/browse/package/1992.html For an example on how to appent wordlists to your dictionary, see the "example_add_wordlist.php" ::The provided database class Copyright by the phpbb2 development group, it follows most "standards" of db classes so it shouldnt be very hard to port to your db class of choice. ::The license All contents are GPL licensed, for more information read the provided "license.txt" ::Questions/comments For and questions or comments, just mail me at: david.frendin@gmail.com

Screenshots (1)  
  • scr.gif
  Files folder image Files (9)  
File Role Description
Accessible without login Plain text file dictionary.sql Data sql table structure
Accessible without login Plain text file example_add_wordlist.php Example example for populating the dictionary
Accessible without login Plain text file example_phrase.php Example Example: Correct an entire phrase
Accessible without login Plain text file example_single.php Example Example: Correct a single word
Accessible without login Plain text file lib_dictionary.php Class lib_dictionary
Accessible without login Plain text file license.txt Lic. License agreement
Accessible without login Plain text file mysql4.php Class database class from phpbb2
Accessible without login Plain text file readme.txt Doc. Getting started - You _should_ read this

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
Downloadlib_dictionary-2007-05-14.zip 17KB
Downloadlib_dictionary-2007-05-14.tar.gz 14KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Spell Checker Download .zip .tar.gz Content: English wordlist Recommended
 Version Control Unique User Downloads Download Rankings  
 0%
Total:425
This week:0
All time:6,358
This week:488Up