Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/darius/languagetoys
/ functions
Functions
197 in github.com/darius/languagetoys
⨍
Functions
197
◇
Types & classes
4
↓ 1 callers
Function
main
()
babble.py:4
↓ 1 callers
Function
main
()
bibleanalyze.py:13
↓ 1 callers
Function
main
(argv)
mondegreen.py:132
↓ 1 callers
Function
make_bag
(letters)
anagram.py:131
↓ 1 callers
Function
match_as_rhyme
(phones, lobeat, hibeat)
verse.py:357
↓ 1 callers
Function
match_phones
(phones, meter)
verse.py:322
↓ 1 callers
Function
match_words
(words, meter)
verse.py:279
↓ 1 callers
Function
mnemonify3
(digits)
mnemonify.py:115
↓ 1 callers
Function
model_probability
(name)
companynames.py:29
↓ 1 callers
Function
permutations
(items)
bestpermutation.py:39
↓ 1 callers
Function
phonetic
(word)
pronounce.py:20
↓ 1 callers
Function
pick_next
(state)
companynames.py:66
↓ 1 callers
Function
pick_word
(d, total)
babble.py:48
↓ 1 callers
Function
pick_word2
(state)
babble.py:44
↓ 1 callers
Function
pigeonhole
Two words have the same pigeonhole iff they're anagrams of each other.
anagram.py:38
↓ 1 callers
Function
print_all_portmanteaus
()
portmanteau.py:52
↓ 1 callers
Function
print_verse
(verse)
verse.py:63
↓ 1 callers
Function
product
(numbers)
companynames.py:33
↓ 1 callers
Function
product
(xs)
bestpermutation.py:36
↓ 1 callers
Function
product
(nums)
pdist.py:15
↓ 1 callers
Function
pronounce
(word)
pronounce.py:17
↓ 1 callers
Function
pronounce
(word)
mondegreen.py:56
↓ 1 callers
Function
pronounce_line
(words)
mondegreen.py:65
↓ 1 callers
Function
pronounce_lines
(lines, rhyming)
mondegreen.py:123
↓ 1 callers
Function
redisplay
(lines)
simpleverse.py:28
↓ 1 callers
Function
restart
Compose a verse of nlines lines. Give up after cutoff backtracks.
simpleverse.py:42
↓ 1 callers
Function
rgb
(r, g, b)
tohtml.py:34
↓ 1 callers
Function
rhyme_matches
(phones1, phones2)
verse.py:387
↓ 1 callers
Function
rhymes
Does phones1 rhyme with phones2?
simpleverse.py:104
↓ 1 callers
Function
rhymes_ok
Does phones, as the last line, fit the rhyme scheme?
simpleverse.py:96
↓ 1 callers
Function
roughen_line
Roughen phones, except maybe preserving the rime at the end.
mondegreen.py:73
↓ 1 callers
Method
save
(self, file)
bigram.py:23
↓ 1 callers
Function
score
(word, prev)
tohtml.py:22
↓ 1 callers
Function
score
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 callers
Function
start
(tokens=('<S>',))
babble.py:10
↓ 1 callers
Function
summarize
(text)
summarize.py:83
↓ 1 callers
Function
the_order
()
babble.py:22
↓ 1 callers
Function
tick
(counter)
verse.py:198
↓ 1 callers
Method
train
(self, text)
bigram.py:10
↓ 1 callers
Function
transcribe
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 callers
Function
try_guess
(word, meter)
verse.py:301
↓ 1 callers
Function
try_on
(sample)
emvowel.py:56
↓ 1 callers
Function
update
(state, word)
babble.py:37
↓ 1 callers
Function
usable_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 callers
Function
versify
Compose a verse of nlines lines.
simpleverse.py:35
↓ 1 callers
Function
weighted_choice
(choices)
companynames.py:76
↓ 1 callers
Function
words
(text)
bigram.py:51
↓ 1 callers
Function
wrapcolor
(text, c)
tohtml.py:37
↓ 1 callers
Function
write_anagrams
(s)
anagram.py:84
↓ 1 callers
Function
write_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
Function
all_successors
(state)
babble.py:40
Function
avoid_long_words
Estimate the probability of an unknown word.
pdist.py:55
Function
best_bigram_score
(words)
bestpermutation.py:22
Function
bigram_prob
(words)
pdist.py:88
Function
bigram_score
(words)
bestpermutation.py:29
Function
bright
(color)
ansi.py:17
Function
dump
()
mnemonify.py:105
Function
emvowel1
(tokens, prev=sentence_token)
emvowel.py:32
Function
fm
(*x)
verse.py:375
Function
fm
(*x)
pdist.py:21
Function
forbid_unknowns
Estimate the probability of an unknown word as 0.
mnemonify.py:14
Function
gen_blank_verse
(n_lines=6, state=None)
verse.py:93
Function
gen_couplet
(state=None)
verse.py:111
Function
gen_double_dactyl
(state=None)
verse.py:153
Function
gen_incantation
(state=None)
verse.py:118
Function
gen_limerick
(state=None)
verse.py:172
Function
gen_neolithic
in the neolithic age
verse.py:133
Function
gen_quatrain
(state=None)
verse.py:125
Function
gen_sonnet
(state=None)
verse.py:101
Function
goto
(x, y)
ansi.py:12
Function
gsummarize
()
summarize.py:65
Function
is_vowel
(phone)
pronounce.py:14
Function
is_vowel
(phone)
simpleverse.py:88
Function
known_words
()
pronounce.py:23
Function
main
()
summarize.py:117
Function
memo
Memoize function f.
verse.py:372
Function
memo
Memoize function f.
pdist.py:18
Function
memo
(f)
memo.py:1
Function
memoized
(*args)
memo.py:3
Function
mnemonify1
(digits)
mnemonify.py:78
Function
mnemonify2
(digits)
mnemonify.py:149
Method
p
(self, context, word)
bigram.py:31
Method
p_untuned
(self, context, word)
bigram.py:38
Function
print_tokens
()
textanalyze.py:17
Function
print_tokens
()
bibleanalyze.py:18
Function
pronounce_all
(words)
mondegreen.py:62
Function
set_background
(color)
ansi.py:23
Function
set_foreground
(color)
ansi.py:20
Function
start
()
verse.py:60
Function
the_list
()
summarize.py:113
Function
untranscribe
(s)
anagram.py:31
← previous
101–197 of 197, ranked by callers