getRatio: Apply a regex pattern on each word of a string and find the...

Description Usage Arguments Value

Description

Apply a regex pattern on each word of a string and find the ratio of matches to word length

Usage

1
getRatio(string, pattern, splitby = "\\s")

Arguments

string

: the input string

pattern

: the regex patter to apply on each word of the string

splitby

: instead of splitting the string into words, it can be split using this regex pattern

Value

a decimal value


eellpp/textutils documentation built on May 16, 2019, 12:12 a.m.