class_docstr: Uses languagetool to determine if two sentences have the same number of
  grammatical erors. (https://languagetool.org/)
  
  Args:
      grammar_error_threshold (int): the number of additional errors permitted in `x_adv`
          relative to `x`
      compare_against_original (bool): If `True`, compare against the original text.
          Otherwise, compare against the most recent text.
      language: language to use for languagetool (available choices: https://dev.languagetool.org/languages)
code: def _check_constraint(self, transformed_text, reference_text):
      original_num_errors = self.get_errors(
          reference_text, use_cache=True
      )
      errors_added = (
          self.get_errors(transformed_text) - original_num_errors
      )
      return errors_added <= self.grammar_error_threshold
  
file_path: TextAttack/textattack/constraints/grammaticality/language_tool.py
imports: import language_tool_python
  from textattack.constraints import Constraint
label_desc: Use image node_id 3 for calling the LanguageTool obj's underlying member method code with example usage: obj._check_constraint(transformed_text, reference_text) and returns: unknown