 |
 |
Is this possible?
|
 |
|
 |
|
Senior User
Join Date: Dec 2000
Location: Manticore
Status:
Offline
|
|
I'm not too good at AppleScript (I know the basics) and was wondering if what I want to do is even possible:
I want a script that will give me all the possible solutions for an acronym (I originally wanted to do this to solve Ginger, but now I'm fairly certain Ginger isn't an acronym. It could be fun anyway.) and export them to a file.
I'd have to have a dictionary file, probably, and also teach the script grammar rather than just letting it do random words.
For example:
Glue
Invert
Navy
Gong
Elf
Red
That wouldn't work. I need to teach it to only pick certain types of words. Is this possible, and if so, could you give me a few pointers?
Thanks
------------------
d
|
|
|
| |
|
|
|
 |
|
 |
|
Adam Best
|
|
Hmmm. This would take quite a bit of work. It's probably beyond the range of AppleScript. You're correct in assuming the need to link to a dictionary file, but in order to have your engine search for "certain types of words," you'd need to create variables for those types, and assign the words you'd like to them as values. Obviuosly, there are a hell of a lot of words in the English language. If you're really excited by the prospect, however, I'd recommend an actual programming application, such as REALBasic combined with an creating an XML-based dictionary file to link to.
However, you couldn't pay me enough to do it! Good luck!
Originally posted by MacAgent:
I'm not too good at AppleScript (I know the basics) and was wondering if what I want to do is even possible:
I want a script that will give me all the possible solutions for an acronym (I originally wanted to do this to solve Ginger, but now I'm fairly certain Ginger isn't an acronym. It could be fun anyway.) and export them to a file.
I'd have to have a dictionary file, probably, and also teach the script grammar rather than just letting it do random words. 
For example:
Glue
Invert
Navy
Gong
Elf
Red
That wouldn't work. I need to teach it to only pick certain types of words. Is this possible, and if so, could you give me a few pointers?
Thanks
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Dec 2000
Location: Edmonton, Canada
Status:
Offline
|
|
Hey,
Why don't you use something like Perl to do that. I find Perl really useful to use with parsing text files and doing lots of string stuff (like what you want to do). I'm not sure, however, how good the whole MacPerl thing is...last time I used it it hung my machine (ugh!) Perhaps try it in MacOS X PB or borrow someone's linux machine?
My 2 cents.
The Macho Man
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Dec 2000
Location: Manticore
Status:
Offline
|
|
Only problem is, I only know AppleScript.
------------------
d
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|