PHP Classes

File: sample-dictionary-format

Recommend this page to a friend!
  Classes of Ravindu Taveesha   Non-Word PHP Spell Checker   sample-dictionary-format   Download  
File: sample-dictionary-format
Role: Example script
Content type: text/plain
Description: sample dictionary format
Class: Non-Word PHP Spell Checker
Detect incorrectly spelled words and suggest fixes
Author: By
Last change: update "
Date: 3 years ago
Size: 502 bytes


Class file image Download
Dictionary contains three sub dictionaries,

1. Unigram: {"word": "frequency"}
2. Bigram: "word": {["word": "frequency"]}
3. Length: "length": ["word1", "word2"]

Sample format.
{"unigram": {"hello": 1, "there": 1, "how": 1, "are": 1, "you": 1, "doing": 1, "today": 1}, "length": {"5": ["hello", "there", "doing", "today"], "3": ["how", "are", "you"]}, "bigram": {"hello": {"there": 1}, "there": {"how": 1}, "how": {"are": 1}, "are": {"you": 1}, "you": {"doing": 1}, "doing": {"today": 1}}}