As one relatively new to programming, I imagine that this question will probably extremely easy to solve. I welcome your suggestions.
The objective is to do is compare two text files (a dictionary and a book) and create different arrays with all the matches between both, that is to say, I need to end up having an array with x "democracy" terms, another with y "state" terms, and so on.
Up to now i've been able to create a counter that counts all the matches between both so i have a counter of total matches, but I can't find the way to split this into different groups?. Pay little mind to the Spanish.