Ruby public interface to classify text