def categorize(str)
      raise ArgumentError, 'str param must be a String' unless str.is_a?(String)

      outcomes = j_instance.categorize(str)
      j_instance.getBestCategory(outcomes)
    end
def categorize(str)
      raise ArgumentError, 'str param must be a String' unless str.is_a?(String)

      outcomes = j_instance.categorize(str)
      j_instance.getBestCategory(outcomes)
    end
Categorizes a string passed as parameter to one of the categories

 @param [String] str string to be categorized
 @return [String] category