Source code for solthiruthi.WordSpeller

## -*- coding: utf-8 -*-
## (C) 2015 Muthiah Annamalai
## 
from __future__ import print_function

import abc

[docs]class ISpeller(object): __metaclass__ = abc.ABCMeta
[docs] @abc.abstractmethod def process_word(self,word): raise Exception("ISpeller : method should return word, and if it was in error or not")
[docs] def get_return_obj(self,word): return {'word':word,'is_error':False,'alternatives':None}