EnglishStringExtensions extension Null safety

String extensions used by the English text analyzer.

on

Properties

diphtongs List<String>
Returns all the diphtongs in the String.
read-only
triptongs List<String>
Returns all the diphtongs in the String.
read-only
vowelDipthongAndTriptongCount int
Returns the number of single vowels, diphtongs and triptongs in the String.
read-only
vowels List<String>
Returns all the vowels in the String.
read-only

Methods

insertSentenceDelimiters() String
Insert sentence delimiters into the String at sentence breaks.
replacePunctuationWithWhiteSpace() String
Replace all punctuation in the String with whitespace.
splitAtLineEndings() List<String>
Split the String at line endings.
splitAtSentenceDelimiters() List<String>
Split the String at EnglishConstants.kSentenceDelimiter, trim the elements and return only non-empty elements.
splitAtWhiteSpace(Map<String, String> abbreviations) List<String>
Split the String at (one or more) white-space characters.