Sha256: 0bedb8bbed075d484adeaffd78f652a7bbd68368e2da9fc97c1b5d3bb874187b
Contents?: true
Size: 648 Bytes
Versions: 2
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 charactor. 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
did_you_mean-1.5.0 | documentation/tree_spell_checker_api.md |
did_you_mean-1.4.0 | documentation/tree_spell_checker_api.md |