hanifhefaz / elm-word-search / WordSearcher

Result

findRelevantDict : Dict String Basics.Int -> List Documents.Result -> Maybe Documents.Result

Finds the sentences with the most occurances from a search string Returns the related result for the returned quesiton in the data.

Words Dictionary

wordsDict : Tokens -> Histogram

This will make a dictionary from a sentence

Sentence Histograms

sentenceHistograms : List Sentence -> List Histogram

This will make a dictionary from data and do some tokenization as well.

Tokenization

tokenize : Sentence -> Tokens

This will tokenize the words and remove symbols.

StopWords

stopWords : Tokens

This will remove all stopWords from the data, which are mentioned here.

ToHistogram

toHistogram : Tokens -> Histogram

This will convert sentences to words histograms.