I have a few hundred words in arrays in a plist, somewhat like below:
PLIST:
Array 1:
- words here
-
-
-
Array 2:
-
-
-
-
-
etc...
Now I need to have a number associated with every word which increments so that I can then fetch the top 10 most failed words (top ten with highest count). This what I can't get my head around, how to keep a number associated with a word and then get the top ten most incorrect words.
I'd like to figure out a better method; I have my list of words, perhaps a number is needed, but I need to keep a record of the most common errors (I have a method which is called when an error is made, I just need to know how to store the error so I can retrieve the ten most incorrect words later).