Re: Count Ouccrence of words in a long text
- To: mathgroup at smc.vnet.net
- Subject: [mg119051] Re: Count Ouccrence of words in a long text
- From: Albert Retey <awnl at gmx-topmail.de>
- Date: Fri, 20 May 2011 06:40:38 -0400 (EDT)
- References: <ir2vpa$h3b$1@smc.vnet.net>
Hi, > Second step: > > How could I take apart the words ("alice" should become "a,l,i,c,e") to get a tally of the letters in a text? (Interesting when comparing languages.) > Another call for one liners :-) Tally[StringCases[ToLowerCase[text], LetterCharacter]] cheers, albert