예제 #1
0
 def addrhyme(self, l):
     legalstresswords = lex.legalstresswords(l)
     legalwords = [
         word for word in self.linegroup.rhymepool(l.rhymegroup)
         if word in legalstresswords
     ]
     l.add(random.choice(legalwords))
예제 #2
0
 def addword(self, l):
     l.add(lex.lexigraphicsample(lex.legalstresswords(l)))
예제 #3
0
 def addword(self, l):
     l.add(random.choice(lex.legalstresswords(l)))
예제 #4
0
 def addword(self, l):
     l.add(lex.lexigraphicsample(lex.legalstresswords(l)))
예제 #5
0
 def addword(self, l):
     l.add(random.choice(lex.legalstresswords(l)))
예제 #6
0
 def addrhyme(self, l):
     legalstresswords = lex.legalstresswords(l)
     legalwords = [word for word in self.linegroup.rhymepool(l.rhymegroup)
                   if word in legalstresswords]
     l.add(random.choice(legalwords))