Talk:Letter frequency: Difference between revisions

m
→‎Task description: added comments on ''letter'' vs ''character'', reading a program's own source as input. -- ~~~~
m (→‎Task description: added comments on ''letter'' vs ''character'', reading a program's own source as input. -- ~~~~)
Line 22:
 
"Letter frequency" is not the same as "letter occurences". The title hints that more is needed in the task description. It would seem that some description of output is required as well. --[[User:Demivec|Demivec]] 16:43, 9 November 2011 (UTC)
 
It seems that many program examples interpreted a ''letter'' as a ''character''. A (Latin) letter has two forms: its uppercase and lowercase version. So if two '''H''' characters and three '''h''' characters were in a file, then there would be five occurrences of the letter aitch. [''Aitch'' is the English name for the letter '''H''' or '''h'''.] The task description could've been more clear on that point, so for the REXX version 1, a count was done for each (Latin) letter, AND also for each character, and the counts are provided in seperate lists. Since it wasn't stated what a letter ''is'' (I used the primary definition that it's any of the symbols of an alphabet), it seemed appropriate to provide a both lists: a list of letters, and a list of all characters (for any lanuage's alphabet). -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:19, 25 July 2012 (UTC)
 
In hindsight, it would've been nice to make a requirement to use the program example as the primary input (but not necessarily the only input), that way, everyone could see what the input is. At lease one example used UNIXDICT.TXT, which has no capital letters. Another program example does use its own program source as input, but didn't count the capital letters at all. -- [[User:Gerard Schildberger|Gerard Schildberger]] 21:19, 25 July 2012 (UTC)
 
== a few remarks for Rexx ==