from proselint.tools import existence_check, memoize


@memoize
def check(text):
    """Check the text."""
    err = "WGD105"
    msg = u"There's a lexical illusion here: a word is repeated."

    commercialese = [
        "the\sthe",
        "is\sis"
    ]

    return existence_check(text, commercialese, err, msg)

from proselint.tools import existence_check, memoize


@memoize
def check(text):
    """Check the text."""
    err = "WGD105"
    msg = u"There's a lexical illusion here: a word is repeated."

    commercialese = [
        "the\sthe",
    ]

    return existence_check(text, commercialese, err, msg)

Remove "is is" from lexical illusions
Remove "is is" from lexical illusions

  from proselint.tools import existence_check, memoize
  
  
  @memoize
  def check(text):
      """Check the text."""
      err = "WGD105"
      msg = u"There's a lexical illusion here: a word is repeated."
  
      commercialese = [
          "the\sthe",
-         "is\sis"
      ]
  
      return existence_check(text, commercialese, err, msg)
  
Remove "is is" from lexical illusions
## Code Before:
from proselint.tools import existence_check, memoize


@memoize
def check(text):
    """Check the text."""
    err = "WGD105"
    msg = u"There's a lexical illusion here: a word is repeated."

    commercialese = [
        "the\sthe",
        "is\sis"
    ]

    return existence_check(text, commercialese, err, msg)

## Instruction:
Remove "is is" from lexical illusions
## Code After:
from proselint.tools import existence_check, memoize


@memoize
def check(text):
    """Check the text."""
    err = "WGD105"
    msg = u"There's a lexical illusion here: a word is repeated."

    commercialese = [
        "the\sthe",
    ]

    return existence_check(text, commercialese, err, msg)
