lib/plagiarism/strategries/engine.rb in plagiarism2-0.0.9 vs lib/plagiarism/strategries/engine.rb in plagiarism2-0.0.10

- old
+ new

@@ -37,10 +37,10 @@ def unique? threshold = Config.threshold || THRESHOLD ps = PragmaticSegmenter::Segmenter.new(text: content) valid_segments = self.class.valid_segments(ps, params) - valid_segments / ps.segment.size >= threshold + valid_segments.to_f / ps.segment.size >= threshold end def match typhoeus = self.class.fetch("\"#{content}\"", params) typhoeus.success? && retrieve_link(typhoeus.response_body)