Xah Talk Show 2022-10-18 WolframLang Coding, Count Words Frequency, Letter Frequency, Bigrams

vidthumb bHnY657aACI
WolframLang word count 2022-10-18
WolframLang word count 2022-10-18

why you need to do it

xinput = ReadString["C:/Users/xah/web/xahlee_org/wordy/arabian_nights/an3.html"];

(* replace any html tag by empty string *)

xinput = StringReplace[ xinput , { RegularExpression[ "<[^>]+>" ] -> ""}];

WordCounts[ xinput ]

(* WordCounts[ xinput, 2 ] *)
(* WordCounts[ xinput, 3 ] *)
(* LetterCounts[ xinput ] *)
(* LetterCounts[ xinput, 2 ] *)