MCPcopy Create free account

hub / github.com/darius/languagetoys / functions

Functions197 in github.com/darius/languagetoys

↓ 1 callersFunctionmain
()
babble.py:4
↓ 1 callersFunctionmain
()
bibleanalyze.py:13
↓ 1 callersFunctionmain
(argv)
mondegreen.py:132
↓ 1 callersFunctionmake_bag
(letters)
anagram.py:131
↓ 1 callersFunctionmatch_as_rhyme
(phones, lobeat, hibeat)
verse.py:357
↓ 1 callersFunctionmatch_phones
(phones, meter)
verse.py:322
↓ 1 callersFunctionmatch_words
(words, meter)
verse.py:279
↓ 1 callersFunctionmnemonify3
(digits)
mnemonify.py:115
↓ 1 callersFunctionmodel_probability
(name)
companynames.py:29
↓ 1 callersFunctionpermutations
(items)
bestpermutation.py:39
↓ 1 callersFunctionphonetic
(word)
pronounce.py:20
↓ 1 callersFunctionpick_next
(state)
companynames.py:66
↓ 1 callersFunctionpick_word
(d, total)
babble.py:48
↓ 1 callersFunctionpick_word2
(state)
babble.py:44
↓ 1 callersFunctionpigeonhole
Two words have the same pigeonhole iff they're anagrams of each other.
anagram.py:38
↓ 1 callersFunctionprint_all_portmanteaus
()
portmanteau.py:52
↓ 1 callersFunctionprint_verse
(verse)
verse.py:63
↓ 1 callersFunctionproduct
(numbers)
companynames.py:33
↓ 1 callersFunctionproduct
(xs)
bestpermutation.py:36
↓ 1 callersFunctionproduct
(nums)
pdist.py:15
↓ 1 callersFunctionpronounce
(word)
pronounce.py:17
↓ 1 callersFunctionpronounce
(word)
mondegreen.py:56
↓ 1 callersFunctionpronounce_line
(words)
mondegreen.py:65
↓ 1 callersFunctionpronounce_lines
(lines, rhyming)
mondegreen.py:123
↓ 1 callersFunctionredisplay
(lines)
simpleverse.py:28
↓ 1 callersFunctionrestart
Compose a verse of nlines lines. Give up after cutoff backtracks.
simpleverse.py:42
↓ 1 callersFunctionrgb
(r, g, b)
tohtml.py:34
↓ 1 callersFunctionrhyme_matches
(phones1, phones2)
verse.py:387
↓ 1 callersFunctionrhymes
Does phones1 rhyme with phones2?
simpleverse.py:104
↓ 1 callersFunctionrhymes_ok
Does phones, as the last line, fit the rhyme scheme?
simpleverse.py:96
↓ 1 callersFunctionroughen_line
Roughen phones, except maybe preserving the rime at the end.
mondegreen.py:73
↓ 1 callersMethodsave
(self, file)
bigram.py:23
↓ 1 callersFunctionscore
(word, prev)
tohtml.py:22
↓ 1 callersFunctionscore
Return a measure of the quality or interestingness of a portmanteau. Lower scores are better. A 'good' portmanteau is made out of common words
portmanteau.py:84
↓ 1 callersFunctionstart
(tokens=('<S>',))
babble.py:10
↓ 1 callersFunctionsummarize
(text)
summarize.py:83
↓ 1 callersFunctionthe_order
()
babble.py:22
↓ 1 callersFunctiontick
(counter)
verse.py:198
↓ 1 callersMethodtrain
(self, text)
bigram.py:10
↓ 1 callersFunctiontranscribe
Return (cost,words) where pronounce_all(words) matches `phones`. `cost` is lower the better the match. Try to find the lowest cost.
mondegreen.py:103
↓ 1 callersFunctiontry_guess
(word, meter)
verse.py:301
↓ 1 callersFunctiontry_on
(sample)
emvowel.py:56
↓ 1 callersFunctionupdate
(state, word)
babble.py:37
↓ 1 callersFunctionusable_pattern
Return a predicate that accepts words that could be part of an anagram of subject. (But a None subject could be anything.) This is to prune th
anagram.py:63
↓ 1 callersFunctionversify
Compose a verse of nlines lines.
simpleverse.py:35
↓ 1 callersFunctionweighted_choice
(choices)
companynames.py:76
↓ 1 callersFunctionwords
(text)
bigram.py:51
↓ 1 callersFunctionwrapcolor
(text, c)
tohtml.py:37
↓ 1 callersFunctionwrite_anagrams
(s)
anagram.py:84
↓ 1 callersFunctionwrite_mnemonic
(s)
mnemonify.py:55
Method__call__
(self, *x)
pdist.py:31
Method__call__
(self, key)
pdist.py:46
Method__init__
(self)
bigram.py:4
Method__init__
(self, f)
pdist.py:29
Method__init__
(self, data=[], N=None, missingfn=None)
pdist.py:40
Method__missing__
(self, key)
pdist.py:33
Functionall_successors
(state)
babble.py:40
Functionavoid_long_words
Estimate the probability of an unknown word.
pdist.py:55
Functionbest_bigram_score
(words)
bestpermutation.py:22
Functionbigram_prob
(words)
pdist.py:88
Functionbigram_score
(words)
bestpermutation.py:29
Functionbright
(color)
ansi.py:17
Functiondump
()
mnemonify.py:105
Functionemvowel1
(tokens, prev=sentence_token)
emvowel.py:32
Functionfm
(*x)
verse.py:375
Functionfm
(*x)
pdist.py:21
Functionforbid_unknowns
Estimate the probability of an unknown word as 0.
mnemonify.py:14
Functiongen_blank_verse
(n_lines=6, state=None)
verse.py:93
Functiongen_couplet
(state=None)
verse.py:111
Functiongen_double_dactyl
(state=None)
verse.py:153
Functiongen_incantation
(state=None)
verse.py:118
Functiongen_limerick
(state=None)
verse.py:172
Functiongen_neolithic
in the neolithic age
verse.py:133
Functiongen_quatrain
(state=None)
verse.py:125
Functiongen_sonnet
(state=None)
verse.py:101
Functiongoto
(x, y)
ansi.py:12
Functiongsummarize
()
summarize.py:65
Functionis_vowel
(phone)
pronounce.py:14
Functionis_vowel
(phone)
simpleverse.py:88
Functionknown_words
()
pronounce.py:23
Functionmain
()
summarize.py:117
Functionmemo
Memoize function f.
verse.py:372
Functionmemo
Memoize function f.
pdist.py:18
Functionmemo
(f)
memo.py:1
Functionmemoized
(*args)
memo.py:3
Functionmnemonify1
(digits)
mnemonify.py:78
Functionmnemonify2
(digits)
mnemonify.py:149
Methodp
(self, context, word)
bigram.py:31
Methodp_untuned
(self, context, word)
bigram.py:38
Functionprint_tokens
()
textanalyze.py:17
Functionprint_tokens
()
bibleanalyze.py:18
Functionpronounce_all
(words)
mondegreen.py:62
Functionset_background
(color)
ansi.py:23
Functionset_foreground
(color)
ansi.py:20
Functionstart
()
verse.py:60
Functionthe_list
()
summarize.py:113
Functionuntranscribe
(s)
anagram.py:31
← previous101–197 of 197, ranked by callers