def check_file(self, file_uri):
     error = []
     with open(file_uri, 'r') as f:
         for i,line in enumerate(f):
             for word in re.split(r'\s+|[.,/\\\[\]]+', line, flags=re.IGNORECASE):
                 corrected = check.correct(word)
                 if word != corrected:
                     error.append((i,word,corrected))
     self.report(error)
def check_text(line):
    for i in ( re.split(r'\s+|[.,/\\\[\]]+', line, flags=re.IGNORECASE) ):
        print check.correct(i)