package
0.53.1
Repository: https://github.com/shulhan/share.git
Documentation: pkg.go.dev

# Functions

Alnum remove non alpha-numeric character from text and return it.
AppendUniq append case-insensitive strings to slice of input without duplicate.
CleanURI remove known links from text and return it.
CleanWikiMarkup remove wiki markup from text.
CountAlnum return number of alpha-numeric character in text.
CountAlnumDistribution count distribution of alpha-numeric characters in text.
CountCharSequence given a string, count number of repeated character more than one in sequence and return list of characters and their counts.
CountDigit return number of digit in text.
CountMissRate given two slice of string, count number of string that is not equal with each other, and return the miss rate as number of not equal / number of data and count of missing, and length of input `src`.
CountNonAlnum return number of non alpha-numeric character in text.
CountToken will return number of token occurrence in words.
CountTokens count number of occurrence of each `tokens` values in words.
CountUniqChar count number of character in text without duplication.
CountUpperLower return number of uppercase and lowercase in text.
Delete the first item that match with value while still preserving the order.
FrequencyOfToken return frequency of token in words using count-of-token / total-words.
FrequencyOfTokens will compute each frequency of token in words.
IsContain return true if elemen `el` is in slice of string `ss`, otherwise return false.
IsEqual compare elements of two slice of string without regard to their order.
LinesOfFile parse the content of file and return non-empty lines.
Longest find the longest word in words and return their value and index.
MaxCharSequence return character which have maximum sequence in `text`.
MergeSpaces replace two or more horizontal spaces (' ', '\t', '\v', '\f', '\r') with single space.
MostFrequentTokens return the token that has highest frequency in words.
NewParser create and initialize parser from content and delimiters.
OpenForParser create and initialize the Parser using content from file.
Partition group the each element of slice "ss" into non-empty record, in such a way that every element is included in one and only of the record.
RatioAlnum compute and return ratio of alpha-numeric within all character in text.
RatioDigit compute and return digit ratio to all characters in text.
RatioNonAlnum return ratio of non-alphanumeric character to all character in text.
RatioUpper compute and return ratio of uppercase character to all character in text.
RatioUpperLower compute and return ratio of uppercase with lowercase character in text.
Reverse the string.
SinglePartition create a table from a slice of string, where each element in slice become a single record.
SingleSpace convert all sequences of white spaces into single space ' '.
SortByIndex will sort the slice of string in place using list of index.
Split given a text, return all words in text.
Swap two indices value of string.
TextFrequencyOfTokens return frequencies of tokens by counting each occurrence of token and divide it with total words in text.
TextSumCountTokens given a text, count how many tokens inside of it and return sum of all counts.
ToBytes convert slice of string into slice of slice of bytes.
ToFloat64 convert slice of string to slice of float64.
ToInt64 convert slice of string to slice of int64.
ToStrings convert slice of interface to slice of string.
TotalFrequencyOfTokens return total frequency of list of token in words.
TrimNonAlnum remove non alpha-numeric character at the beginning and end of `text`.
Uniq remove duplicate string from `words`.

# Structs

Parser implement text parsing over string.

# Type aliases

Row is simplified name for slice of slice of string.
Table is for working with set of row.