ANY SCRIPTING LANGUAGE Write a script in a scripting language of your choice to
ID: 3697639 • Letter: A
Question
ANY SCRIPTING LANGUAGE
Write a script in a scripting language of your choice to create a simple concordance : a sorted list of signicant words appearing in an input document (which you will prompt the use for). In addition, create an associative array (or dictionary) to store the number of times the word appears in the document with each word, so that (for example) the command print numtimes['Homework'] will print 2 for this document. Exclude from your list all common articles, conjunctions, prepositions, and pronouns.
Explanation / Answer
I think the following link will help you to an extent, check it once....
http://word.tips.net/T001833_Generating_a_Count_of_Word_Occurrences.html