markov.py
def startwords(self):
        """
        !DEMO!
        Cached list of keys that can be used to generate sentence.
        """

        if self._start_words is not None:
            return self._start_words
        else:
            self._start_words = list(filter(
                lambda x: str.isupper(x[0][0]) and x[0][-1] not in ['.', '?', '!'],
                self.content.keys()
            ))
            return self._start_words
def startwords(self):
        if self._start_words is not None:
            return self._start_words
        else:
            self._start_words = list(filter(
                lambda x: str.isupper(x[0][0]) and x[0][-1] not in ['.', '?', '!'],
                self.content.keys()
            ))
            return self._start_words
def startwords ( self ) : if self . _start_words is not None : return self . _start_words else : self . _start_words = list ( filter ( lambda x : str . isupper ( x [ 0 ] [ 0 ] ) and x [ 0 ] [ - 1 ] not in [ '.' , '?' , '!' ] , self . content . keys ( ) ) ) return self . _start_words
!DEMO!
        Cached list of keys that can be used to generate sentence.
!DEMO! Cached list of keys that can be used to generate sentence .