@tutorbot/helper
v1.17.2
Published
The helper functions and useful tools for tutorbot's services and packages.
Keywords
Readme
Table of Contents
- getChunks
- splitToChunks
- pass
- getProbablyItem
- shuffle
- shuffleWithMinPercent
- similarity
- generateCodeFromString
- splitCamelCaseToString
- trim
- isLetterAnswer
- getPossibleTranslit
- getPossibleTranslits
- isWordInListWithTranslit
- getWordTranslit
- unique
- wordItemToText
getChunks
Parameters
splitToChunks
Parameters
pass
The empty function it's to prevent duplications
Parameters
args...Array<any>
Returns void
getProbablyItem
Parameters
Returns ProbablyItemResult?
shuffle
Parameters
aArray<T>
shuffleWithMinPercent
Parameters
similarity
get words similarity rate by Levenshtein distance
Parameters
Returns number
generateCodeFromString
Parameters
strstring
Returns string
splitCamelCaseToString
Parameters
textstring
trim
Parameters
strstring
Returns string
isLetterAnswer
Parameters
getPossibleTranslit
Get word's all possible translits
Parameters
wordstring
getPossibleTranslits
Get possible translits for list fo words
Parameters
isWordInListWithTranslit
Check is word in one of possible variant of translits by similarity
Parameters
Returns boolean
getWordTranslit
Get most possible variant of list by translit with similarity rate
Parameters
Returns string?
unique
Parameters
wordItemToText
Return the word with his common view form
Parameters
itemWordItem
