MCPcopy Create free account

hub / github.com/argusdusty/Ferret / functions

Functions15 in github.com/argusdusty/Ferret

↓ 14 callersMethodQuery
Query returns the strings which contain the query, and their stored values unsorted Input: Word: The substring to search for. ResultsLimit: Limit the
ferret.go:203
↓ 9 callersMethodSortedQuery
SortedQuery returns the strings which contain the query sorted The function sorter produces a value to sort by (largest first) Input: Word: The substr
ferret.go:239
↓ 8 callersMethodSearch
Search performs an exact substring search for the query in the word dictionary Returns the boundaries (low/high) of sorted suffixes which have the que
ferret.go:130
↓ 8 callersMethodSortedErrorCorrectingQuery
SortedErrorCorrectingQuery returns the strings which contain the query Sorted. The function sorter produces a value to sort by (largest first) Will se
ferret.go:371
↓ 5 callersMethodErrorCorrectingQuery
ErrorCorrectingQuery returns the strings which contain the query Unsorted, I think it's partially sorted alphabetically Will search for all substrings
ferret.go:314
↓ 3 callersMethodInsert
Insert adds a word to the dictionary that IS was built on. This is pretty slow, because of linear-time insertion into an array, so stick to New when y
ferret.go:102
↓ 1 callersFunctionToASCII
ToASCII converts a single unicode rune to the ASCII equivalent using the UnicodeToASCII table
unicodeconvert.go:48
FunctionErrorCorrect
ErrorCorrect returns all byte-arrays which are Levenshtein distance of 1 away from Word within an allowed array of byte characters.
errorcorrect.go:60
MethodLen
()
ferret.go:46
MethodLess
Equivalent to: bytes.Compare(S.Words[S.WordIndex[i]][S.SuffixIndex[i]:], S.Words[S.WordIndex[j]][S.SuffixIndex[j]:]) <= 0 but faster
ferret.go:53
FunctionNew
New creates an inverted suffix from a dictionary of byte arrays, mapping data, and a string->[]byte converter
ferret.go:78
MethodSwap
(i, j int)
ferret.go:41
FunctionUnicodeToLowerASCII
UnicodeToLowerASCII converts a unicode string to ASCII bytes using the UnicodeToASCII table
unicodeconvert.go:57
Functionmain
()
example/dictionaryexample.go:35
Functionmain
()
example/example.go:56