[released] XTC koffieshop (i.e. Dutch-participle helper) - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [released] XTC koffieshop (i.e. Dutch-participle helper) (/showthread.php?tid=97502) [released] XTC koffieshop (i.e. Dutch-participle helper) by SmokingCookie on 05-01-2011 at 01:41 PM
First of all: no, this ain't about XTC, coffee shops or or anything drugs-related I almost hear you thinking: well, what is it then? Well, let me give you some background: a friend of mine once asked me whether some Dutch participle was supposed to end on a T or on a D. So I made him a little script to figure that out. Not that it's very useful, but I thought: hey, let's release it anyway code: Note the [square brackets!] These are mandatory; if you don't use them, your input will be ignored and the window will pop up. If you supply no parameter (i.e. just type "/XTC"), the the window will pop up. You can use this command remotely too: code: However, you must supply exactly one parameter; if you don't the script will send you a message, providing you with the correct syntax. What a NAME! I know That's because of the trick used in this thing: if a verb ends on a consonant in the words "XTC koffieshop," you write the participle with a T; otherwise, you write it with a D. Cool! (a.k.a. Download) See attachment Ah crap! (a.k.a. Known issues) None yet; if you find some, please post them here. RE: [released] XTC koffieshop (i.e. Dutch-participle helper) by foaly on 05-01-2011 at 04:50 PM
I think you either mean 't fokschaap or 't kofschip... RE: [released] XTC koffieshop (i.e. Dutch-participle helper) by SmokingCookie on 05-01-2011 at 05:42 PM Yeah I know.. But I've spent a couple of hours straight trying to think of a verb base ending on c or h, but haven't really succeeded yet RE: [released] XTC koffieshop (i.e. Dutch-participle helper) by CookieRevised on 05-02-2011 at 11:27 AM
cool quote:"lachen", "crashen", ... Dunno one with 'c' so quickly though... Also take in account verbs like "skiën" in case you're searching the end of the string for "en", it will fail (haven't looked at the source). Then there is also the problem of taking the base of that verb: the base is "skie" not "ski". In case of "'t kofschip" the trick will work ("e" isn't in "'t kopschip" so it is "skiede"), but if you use "koffieshop" it will fail, you'll have a "e" in there... PS: maybe to further increase the use of the script you could hard code irregular verbs? http://nl.wikipedia.org/wiki/Lijst_van_sterke_en_..._in_het_Nederlands Also, I would remove the mandatory usage of the square brackets in the parameter. They seem useless imho; if no parameter is given, open the window. If a parameter is given, try to parse it. RE: [released] XTC koffieshop (i.e. Dutch-participle helper) by SmokingCookie on 05-02-2011 at 01:12 PM
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 ). JScript code: 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. RE: [released] XTC koffieshop (i.e. Dutch-participle helper) by foaly on 05-02-2011 at 01:49 PM
In most cases the script will work properly, but Dutch is a crazy language, and the rule is actually sound based not letter based: |