I am working on a text classification problem, I am trying to classify a collection of words into category, yes there are plenty of libraries available for classification, s
If possible then read the section called "A Naive Classifier" in chapter "Document Filtering" in book called "Programming Collective Intelligence". Although the examples are in Python, I hope that will not be of much trouble to you.