Content
(no comment in the source: the name reads as a sentence) contentno extension
21 own methods · 10 forms written with extensions, listed under their method
the source: base/string/stzStringWords.ring(opens in a new tab) · All classes · The area reference: String
Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean
Examples: 0 come from the library's tests; 17 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzStringWords("hello dear world dear"). 4 methods have none yet. Examples run on 2026-10-03 12:54 inside the library at commit 0e72e2e2c.
o1 = new stzStringWords("hello dear world dear")
? o1.NumberOfChars()
#--> 21composed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.IsEmpty()
#--> 0composed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? @@( o1.Words() )
#--> [ "hello", "dear", "world", "dear" ]composed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.NumberOfWords()
#--> 4composed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.NthWord(2)
#--> dearcomposed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.FirstWord()
#--> hellocomposed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.LastWord()
#--> dearcomposed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? @@( o1.NFirstWords(2) )
#--> [ "hello", "dear" ]composed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? @@( o1.NLastWords(2) )
#--> [ "world", "dear" ]composed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.WordAtPosition(2)
#--> hellocomposed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? @@( o1.UniqueWords() )
#--> [ "hello", "dear", "world" ]composed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.LongestWord()
#--> hellocomposed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.ShortestWord()
#--> dearcomposed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.AverageWordLength()
#--> 4.50composed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? @@( o1.WordFrequencies() )
#--> [ [ "hello", 1 ], [ "dear", 2 ], [ "world", 1 ] ]composed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.MostFrequentWord()
#--> dearcomposed from the signature, run for this pageo1 = new stzStringWords("hello dear world dear")
? o1.ContainsWord("an")
#--> 0composed from the signature, run for this page