I am trying to count the occurrences of ALL words in a file. However, I want to exclude certain words: short words (i.e. <3 chars), and words contained in an blacklist file. There is also a desire to count words that are capitalized (e.g. proper names). I am not 100% sure where the line on capitalization is; i.e. do we count the first word of a sentence differently?
I have a few questions
for example if I have a file which contains lines how do i write a script that will
find and print out every word in the file, one word per line.
Then find and print out the most occurring word (case sensitive) and the number of
occurrences of that word in the file.
cat $@ | while read line
for word in $line
echo $word | circling-the-square
# here's where i need to add the if statement:
#if the word contains one of the four [!?.,],
#then also echo that punctuation mark
circling-the-square is a Python script based on Norvig's spelling corrector.
How do I add a "edittext" that when you type in a specific word such as "apple" it will make a new xml page pop up. But if the user types in a different word besides "apple" it will make a different xml page pop up.
What I'm trying to accomplish is somethings similar to a logo quiz game where when you type in the right word, a new thing pops up.
Need Android Word Processor that has a good "Search" function.
It needs to have a Search function that allows me to search for each occurrence of a word, ie. to be able to search for the multiple occurrences of the word "dog" within a 300 page document, advancing from one occurrence to the next.