Attempting to make classes for preprocessing generic text collections