def force_populate(self):
        """
        Populates the parser with the entire contents of the
        word reference file.
        """
        if not os.path.exists(self.ref):
            raise FileNotFoundError("The reference file path '{}' does not exists.".format(self.ref))
        with open(self.ref, 'r') as f:
            for word in f:
                word = word.strip('\n')
                self.db.add(word)
        self.populated = True
def force_populate ( self ) : if not os . path . exists ( self . ref ) : raise FileNotFoundError ( "The reference file path '{}' does not exists." . format ( self . ref ) ) with open ( self . ref , 'r' ) as f : for word in f : word = word . strip ( '\n' ) self . db . add ( word ) self . populated = True
Populates the parser with the entire contents of the
        word reference file.