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
↓ 10 callers
Function
candidates
(digit)
mnemonify.py:96
↓ 8 callers
Function
gen_verse
(rhymescheme, antirhymescheme, meters, state=None)
verse.py:203
↓ 7 callers
Function
combine3
((logprob, words), word)
mnemonify.py:140
↓ 5 callers
Function
combine2
((logprob, words), word)
mnemonify.py:168
↓ 5 callers
Function
datafile
Read key,value pairs from file.
pdist.py:50
↓ 4 callers
Function
candidates
()
summarize.py:74
↓ 4 callers
Function
find_rime
Return the position of the stressed vowel starting phones's rime.
simpleverse.py:117
↓ 4 callers
Function
rime
(phones)
verse.py:391
↓ 4 callers
Function
transcribe
(s)
anagram.py:30
↓ 3 callers
Function
add
(word)
anagram.py:49
↓ 3 callers
Function
all_emvowelings
(token)
emvowel.py:22
↓ 3 callers
Function
cPw
Conditional probability of word, given previous word.
pdist.py:81
↓ 3 callers
Function
pronounce
(words)
simpleverse.py:125
↓ 3 callers
Function
train
(features)
summarize.py:31
↓ 3 callers
Function
words
(text)
summarize.py:26
↓ 2 callers
Method
_note_ngram
(self, prev, word)
bigram.py:16
↓ 2 callers
Function
add
(word, common_cost)
mondegreen.py:92
↓ 2 callers
Function
argh
(beats)
verse.py:353
↓ 2 callers
Function
bag_letters
(s)
anagram.py:128
↓ 2 callers
Function
collect_choices
(state)
companynames.py:69
↓ 2 callers
Function
datafile
Read key,value pairs from file.
summarize.py:41
↓ 2 callers
Function
disemvowel
(t)
emvowel.py:15
↓ 2 callers
Function
enum_bible_tokens
(lines)
bibleanalyze.py:36
↓ 2 callers
Function
enum_tokens
(lines)
textanalyze.py:43
↓ 2 callers
Function
find_rime
(phones)
verse.py:393
↓ 2 callers
Function
format_line
(line)
verse.py:70
↓ 2 callers
Function
gen_line
(meter, rhymes, antirhymes, state, cutoff)
verse.py:248
↓ 2 callers
Function
indent
(s)
emvowel.py:63
↓ 2 callers
Method
load
(self, file)
bigram.py:25
↓ 2 callers
Function
m2
(digits)
mnemonify.py:153
↓ 2 callers
Function
match_beat
(beat, meter_beat, lobeat, hibeat)
verse.py:364
↓ 2 callers
Function
match_word
(word, meter)
verse.py:285
↓ 2 callers
Function
maybe_capitalize
(word)
summarize.py:52
↓ 2 callers
Function
ngrams
(string)
companynames.py:84
↓ 2 callers
Function
onset
(phones)
verse.py:390
↓ 2 callers
Function
rime
Return the suffix that must sound the same in a rhyme.
simpleverse.py:113
↓ 2 callers
Function
roughen
(phones)
mondegreen.py:37
↓ 2 callers
Function
segment_beats
(phones)
verse.py:383
↓ 2 callers
Function
show
Display a verse. We try to avoid flicker in redisplay.
simpleverse.py:21
↓ 2 callers
Function
splits
(s)
mnemonify.py:99
↓ 2 callers
Function
squeeze
(tokens)
textanalyze.py:33
↓ 2 callers
Function
wrap
(name)
companynames.py:90
↓ 1 callers
Method
_p1
(self, word)
bigram.py:43
↓ 1 callers
Method
_p2
(self, context, word)
bigram.py:45
↓ 1 callers
Function
all_portmanteaus
()
portmanteau.py:56
↓ 1 callers
Function
all_prefixes
(words)
portmanteau.py:67
↓ 1 callers
Function
all_suffixes
(words)
portmanteau.py:70
↓ 1 callers
Function
append_word
(lines)
simpleverse.py:59
↓ 1 callers
Function
babble
(nwords, state=None)
babble.py:27
↓ 1 callers
Function
babbling
(state)
babble.py:31
↓ 1 callers
Function
backtrack
(lines, kappa)
simpleverse.py:62
↓ 1 callers
Function
bag_extractions
Generate (letter, bag-minus-one-of-that-letter) for each different letter in the bag.
anagram.py:134
↓ 1 callers
Function
bigram_prob
(words)
bestpermutation.py:32
↓ 1 callers
Function
bigrams
(words)
emvowel.py:40
↓ 1 callers
Function
cPw
(letter, prefix)
companynames.py:36
↓ 1 callers
Function
cPw
Conditional probability of word, given previous word.
mnemonify.py:18
↓ 1 callers
Function
cPww
Conditional probability of word, given twe previous words.
mnemonify.py:25
↓ 1 callers
Function
chunk_name
(filename)
summarize.py:90
↓ 1 callers
Function
clean
(string)
companynames.py:87
↓ 1 callers
Function
color
(v)
tohtml.py:29
↓ 1 callers
Function
colored
(word, prev)
tohtml.py:18
↓ 1 callers
Function
combinations
(items, n)
bestpermutation.py:42
↓ 1 callers
Function
compute_best
(phones, rough_phones, bounds, costs, seqs, i)
mondegreen.py:86
↓ 1 callers
Function
count_ngrams
(n)
textanalyze.py:21
↓ 1 callers
Function
count_ngrams
(n)
bibleanalyze.py:22
↓ 1 callers
Function
cross_entropy
(name)
companynames.py:24
↓ 1 callers
Function
cross_product
(lists)
anagram.py:92
↓ 1 callers
Function
do_all
()
summarize.py:59
↓ 1 callers
Function
emvowel
(tokens, prev=sentence_token)
emvowel.py:44
↓ 1 callers
Function
emvowel_unigram
(tokens)
emvowel.py:27
↓ 1 callers
Function
enum_paragraphs
(lines)
bibleanalyze.py:43
↓ 1 callers
Function
enum_verses
(paragraph)
bibleanalyze.py:55
↓ 1 callers
Function
ev
(tokens, prev)
emvowel.py:46
↓ 1 callers
Function
evaluate
Return an evaluation of the last line: bad, incomplete, or good.
simpleverse.py:70
↓ 1 callers
Function
extend
Generate all the anagrams of the nonempty bag 'rest' that extend acc with a word starting with wp, the remainder of wp being lexicographically
anagram.py:107
↓ 1 callers
Function
extend2
(before, digits)
mnemonify.py:159
↓ 1 callers
Function
extend3
(before, digits)
mnemonify.py:125
↓ 1 callers
Function
format
(tokens)
mnemonify.py:62
↓ 1 callers
Function
gen
()
companynames.py:54
↓ 1 callers
Function
gen
(meter, rhymes, antirhymes, state, counter)
verse.py:258
↓ 1 callers
Function
gen_anagrams
Generate the anagrams of s in sorted order, each anagram itself sorted, and each such anagram appearing exactly once. An anagram is represente
anagram.py:100
↓ 1 callers
Function
gen_lots
()
companynames.py:50
↓ 1 callers
Function
gen_name
()
companynames.py:40
↓ 1 callers
Function
group
Given (key,value) pairs, return a table mapping each key to a list of all its values.
portmanteau.py:76
↓ 1 callers
Function
is_acceptable
(candidate)
companynames.py:45
↓ 1 callers
Function
is_degenerate_portmanteau
(s, p, blend)
portmanteau.py:73
↓ 1 callers
Function
is_iambic
We deem phones iambic if the even-numbered syllables are unstressed.
simpleverse.py:83
↓ 1 callers
Function
is_root_word
Return true unless w is an affixed or compound word.
portmanteau.py:101
↓ 1 callers
Function
load
Read in a word-list, one word per line. Prune it wrt subject.
anagram.py:42
↓ 1 callers
Function
load
(file, good_words=None)
babble.py:58
↓ 1 callers
Function
m3
(digits)
mnemonify.py:119
↓ 1 callers
Function
main
()
pronounce.py:26
↓ 1 callers
Function
main
(argv)
simpleverse.py:17
↓ 1 callers
Function
main
()
emvowel.py:109
↓ 1 callers
Function
main
(argv)
anagram.py:17
↓ 1 callers
Function
main
()
companynames.py:19
↓ 1 callers
Function
main
(argv)
mnemonify.py:52
↓ 1 callers
Function
main
(argv)
textanalyze.py:12
↓ 1 callers
Function
main
(argv)
verse.py:38
↓ 1 callers
Function
main
()
bestpermutation.py:16
next →
1–100 of 197, ranked by callers