I'm in a situation where I'm given a character string and need to determine if the language of the string is Spanish or English. I plan on parsing for stop words - Spanish (`de, es, si, y") vs English ('of', 'is', 'if', 'and')? If there more Spanish occurrences than English occurrences, then, I conclude the page is Spanish.
Are there any Ruby snippets already available to do this? If not, what would be good method for string parsing or regex to do this?