That's what I thought too when it was working
I know about the pronunciation rule, but not everyone does. That's why I wrote the core function in the first place (and I never intended to release
).
"Faxen" does indeed work (omg who uses fax machines anyway? xD) because of the XTC prefix; you'll only fool it when you use irregular and/or strong verbs and I might indeed hard-code that when I've got
time to waste nothing to do.
Verbs like "lachen" and "crashen" will be treated correctly: it'll tell you that you write "gecrasht" (in essence, "crashen" ends on an H, rather than SH; as far as the script is concerned though
).
About the e: I only check for consonants, so it'll loop through this array:
JScript code:
["x","t","c","k","f","s","h","p"];
As you can see, I don't just split up "xtckoffieshop," I take the vowels out too. That's why it'll answer D anyway. However, I didn't check for "ën" so thanks for the hint
In the next release, I'll use a regular expression to scrap unnecessary stuff from the command - still struggling with that though
but please don't give it away; wanna find it all out myself
On a side note: I've built my nice scrolling feature into this thing too.