Functions21 public, 1 private

Anonymizes the provided e-mail by masking it.
publicstringanonymizeMail
Mail to anonymize.
requiredstringmail
stringmaskChar*
Value between: 0.1 and 0.9
numericmaskFactor0.5
Anonymizes the provided name by abbreviating it.
publicstringanonymizeName
Name to anonymize.
requiredstringname
Counts all occuring digits in the provided text.
publicnumericcountDigits
requiredstringtext
Extracts all digits in the provided string.
publicanyextractDigits
requiredstringsource
structOPTIONS{}
option"array", "string"returnTypestring
Extracts the plain text from the specified document file.
publicstringextractDocumentContent
Location of the document file.
requiredstringdocument
Extracts all valid email addresses from the provided content.
publicarrayextractMailAddresses
requiredstringcontent
Extracts the content between the specified strings.
publicstructextractRegion
requiredstringcontent
requiredstringtagStart
requiredstringtagEnd
Attempts to recognize obvious names and returns the matching gender.
publicstringgetGenderByName
requiredstringname
Extracts the initial(s) in the provided stirng.
publicstringgetInitials
requiredstringvalue
numericinitialLength1
Returns a shortened template path for the current template.
publicstringgetShortTemplatePath
requiredstringfullPath
requiredstringstartPath
Returns a shortened template path for the current template.
publicstringgetShortTemplatePathNoCase
requiredstringfullPath
requiredstringstartPath
Returns a shortened template path for the current template.
publicstringhandleShortTemplatePath
requiredstringfullPath
requiredstringstartPath
requiredbooleancaseSensitive
Normalizes the provided URL.
publicstringnormalizeURL
URL to be normalized.
requiredstringvalue
Attempts to correct common typing errors in the provided e-mail address.
publicstringnormalizeMailAddress
requiredstringemail
Replaces all markup entities in the provided string.
publicstringreplaceEntities
requiredstringsource
publicstructsplitName
requiredstringname
stringlanguageen
Separates name and number of the provided street.
publicstructsplitStreet
requiredstringstreet
Separates the provided URL according to RFC 3986 without validating.
publicstructsplitUrl
requiredstringuri
Strip additional characters based on punctuation.
publicstringstripBySentence
requiredstringtext
requirednumericmaxLength
stringellipsis
publicstringstripByWord
requiredstringtext
requirednumericmaxLength
stringellipsis
Removes all opening and (self-)closing HTML tags in the provided string. Content within the tags is not affected.
publicstringstripHtml
requiredstringsource
booleanreplaceEntitiestrue