Reworked WordArchive::load to use new wordlist format
[vspell.git] / utils / syllable-gen.cpp
blob07d867cc3c20d6d751567d9a2e5909aa6a8e9800
1 #include <stdio.h>
2 char *vowels[] = {
3 "o","u","i","y",
4 NULL
5 };
7 char *last_consonants[] = { // longest first
8 "i","y","o","u","",
9 NULL
12 char *padding_vowels[] = {
13 "o","u","",
14 NULL
17 int main()
19 for (int i = 0;padding_vowels[i];i ++)
20 for (int j = 0;vowels[j];j ++)
21 for (int k = 0;last_consonants[k];k ++)
22 printf("%s%s%s\n",
23 padding_vowels[i],
24 vowels[j],
25 last_consonants[k]);
26 return 0;