JSFiddle - React, Tailwind, and code Playground
Syllable generator: Vowel-Consonant, CV, VCV, CVC
by skibulk
JavaScript
/*
http://www.oxfordlearnersdictionaries.com/us/about/pronunciation_american_english.html
https://en.wikipedia.org/wiki/International_Phonetic_Alphabet
https://en.wikipedia.org/wiki/Consonant_clusterat, cap, parrot
http://www.phonicsontheweb.com/vowel-combinations.php
http://web.archive.org/web/20160822211027/http://semarch.linguistics.fas.nyu.edu/barker/Syllables/index.txt
(VC){1,5}V?
V
VC
VCV
VCVC
VCVCV
VCVCVC
VCVCVCV
VCVCVCVC
VCVCVCVCV
(CV){1,5}C?
VC
VCV
CV
CVC
Sound Effects as Speech?
ape, play, sail
cot, father, heart
ten, wealth, merry
even, feet, money
is, stick, mirror
ice, high, sky
go, open, tone
all, law, horn
could, look, pull
cure, furious
boot, crew, tune
cute, few, use
boy, oil, royal
cow, out, sour
mud, ton, blood, trouble
her, sir, word
ago, agent, collect, focus
cattle, paddle
sudden, sweeten
bed, table, rob
dog, middle, sad
for, phone, cough
get, wiggle, dog
hat, hope, ahead
which, white
joy, badge, agent
kill, cat, quiet
let, yellow, ball
meet, number, time
net, candle, ton
put, sample, escape
red, wrong, born
sit, castle, office
top, letter, cat
voice, every, love
wet, always, quart
yes, canyon, onion
zoo, misery, rise
chew, nature, punch
shell, machine, bush
thin, nothing, truth
then, other, bathe
beige, measure, seizure
ring, anger, drink
*/
function combine(arr1, arr2){
var i, j, il = arr1.length, jl = arr2.length, out = [];
for (i=0; i<il; i++) {
for (j=0; j<jl; j++) {
out.push( arr1[i] + arr2[j] );
}
}
return out;
}
var vowels = [
'aa',
'ae',
'ah',
'ao',
'aw',
'ax',
'ay',
'ea',
'eh',
'er',
'ey',
'ia',
'ih',
'iy',
'oh',
'ow',
'oy',
'ua',
'uh',
'uw',
];
var consonants = [
'b',
'ch',
'd',
'dh',
'f',
'g',
'hh',
'jh',
'k',
'l',
'm',
'n',
'ng',
'p',
'r',
's',
'sh',
't',
'th',
'v',
'w',
'y',
'z',
'zh',
];
var initial_blends = [
'bl',
'cl',
'fl',
'gl',
'pl',
'sl',
'br',
'cr',
'dr',
'fr',
'gr',
...