From rlpowell@digitalkingdom.org Sat Dec 04 19:06:30 2004 Received: with ECARTIS (v1.0.0; list lojban-list); Sat, 04 Dec 2004 19:06:31 -0800 (PST) Received: from rlpowell by chain.digitalkingdom.org with local (Exim 4.34) id 1Camj8-0006Y3-3W for lojban-list@lojban.org; Sat, 04 Dec 2004 19:06:22 -0800 Date: Sat, 4 Dec 2004 19:06:22 -0800 To: lojban-list@lojban.org Subject: [lojban] Re: Updated Letter Frequency Data Message-ID: <20041205030622.GW25791@chain.digitalkingdom.org> Mail-Followup-To: lojban-list@lojban.org References: <20041204184629.GU25791@chain.digitalkingdom.org> <20041204234414.GC6154@skunk.reutershealth.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041204234414.GC6154@skunk.reutershealth.com> User-Agent: Mutt/1.5.6+20040722i From: Robin Lee Powell X-archive-position: 9066 X-ecartis-version: Ecartis v1.0.0 Sender: lojban-list-bounce@lojban.org Errors-to: lojban-list-bounce@lojban.org X-original-sender: rlpowell@digitalkingdom.org Precedence: bulk Reply-to: lojban-list@lojban.org X-list: lojban-list On Sat, Dec 04, 2004 at 06:44:14PM -0500, John Cowan wrote: > Robin Lee Powell scripsit: > > > My data, sorted by number of occurences: > > [snip] > > > The only previous work on this I'm aware of is: > > > > http://www.lojban.org/files/papers/scrabble.unf > > > > Which, it turns out, is amazingly flawed (which is fine, because > > that was a long time ago!). > > The two sets of statistics aren't comparable, because the Scrabble > data counts each distinct word only once, which is appropriate for > Scrabble. Your data (I assume) counts every letter in the running > text. I don't see how that's appropriate for scrabble, actually, but I can edit my data to work that way trivially: grep -v '^#' test_sentences.txt | sed 's/ -- .*//' | tr -d -c "aeiouybcdfgjklmnprstvxz' .A-Z" | tr ' .' '\n' | sort | uniq | tr -d -c "aeiouybcdfgjklmnprstvxz'" | sed 's/\(.\)/\1\n/g' | sort | uniq -c | sort -r Gives: 21732 i 17703 a 14387 o 11890 e 10319 u 9585 n 8434 c 8011 r 7560 l 7084 s 6816 m 5780 ' 5496 t 5144 d 4290 k 3870 b 3453 p 3124 j 2720 g 2032 x 2010 v 1915 z 1749 y 1632 f Which is within spitting distance of identical to my previous result. -Robin -- http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ Reason #237 To Learn Lojban: "Homonyms: Their Grate!" Proud Supporter of the Singularity Institute - http://singinst.org/