added boolean in span_is_plagiarized to make it only count if at least half the span is plagiarized