Sha256: 78853eadf8669165f787465bc8c948d43f19d8ad61c0c44b8d5cf92917be6596

Contents?: true

Size: 648 Bytes

Versions: 4

Compression:

Stored size: 648 Bytes

Contents

# TreeSpellChecker API
## Description

## Initialization
```
def initialize(dictionary:, separator: '/', augment: nil)
end
```
where
####dictionary: The dictionary is a list of possible words
    * that are used to correct a misspelling
    * The dictionary must be tree structured with a single character separator
    * e.g 'spec/models/goals_spec_rb'.
####separator: A single character.  Cannot be cannot be alphabetical, '@' or '.'.
####augment: When set to true, the checker will used the standard ```SpellChecker``` to find possible suggestions.
## Methods
```
def correct(input)
end
```
where
####input: Is the input word to be corrected.


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
did_you_mean-2.0.0 documentation/tree_spell_checker_api.md
did_you_mean-1.6.3 documentation/tree_spell_checker_api.md
did_you_mean-1.6.2 documentation/tree_spell_checker_api.md
did_you_mean-1.6.1 documentation/tree_spell_checker_api.md