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

      j_instance.sentDetect(str).to_ary
    end
def detect(str)
      raise ArgumentError, 'str must be a String' unless str.is_a?(String)

      j_instance.sentDetect(str).to_ary
    end
Detects sentences in a string

 @param [String] string string to detect sentences in
 @return [Array<String>] array of detected sentences