def spell_t(tests):
        """
        run en_correct(wrong) on all (right,wrong) pairs, and report result
        :param tests:
        :return:
        """
        import time
        start = time.time()
        good, unknown = 0, 0
        n = len(tests)
        en_correct = spell.correct
        for right, wrong in tests:
            w = en_correct(wrong)['target']
            good += (w == right)
        all_time = time.time() - start
        print('acc: {:.0%}, total num: {}, ({:.0%} unknown), speed: {:.0f} '
              'words per second'.format(good / n, n, unknown / n, n / all_time))

        run en_correct(wrong) on all (right,wrong) pairs, and report result
        :param tests:
        :return:
        
tests/en_spell_correct_test.py