FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Integration
(Moderators: fry, REAS)
   Dictionary access
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Dictionary access  (Read 1251 times)
Manuel


Dictionary access
« on: Feb 4th, 2005, 9:36pm »

Hello,
 
I'm decently able with processing and java but not a programming expert. I'd like to access a dictionary database and extract information from it according to word. IE, I'd like to input text, write a script that looks up each word in the dictionary, extract the part of speech it is from (ie, is it a noun, adjective, etc.?), and apply those values.  
 
Is there any way I can use processing to access the dictionary in Microsoft Word to extract this kind of information? or an online dictionary? any starters on how i would begin to figure it out? thank you very much.
 
manuel
 
fjen

WWW
Re: Dictionary access
« Reply #1 on: Feb 5th, 2005, 3:49pm »

accessing ms-word depends on the platform you're on, i guess .. i think there might be a way to script that on pc, not sure about access (applescript) on mac.
 
anyway, an online-solution might be to use: http://www.dict.org/bin/Dict
 
since the applet can't access data on other servers (see here), except for it being signed, you'd have to look into a php-solution (or any other serverside-language) to channel the data. i'm pretty sure there are plenty dict-php-scripts out there, try googling ...
 
/F
 
fry


WWW
Re: Dictionary access
« Reply #2 on: Feb 5th, 2005, 4:13pm »

you might use the free dictionary from gutenberg:
http://www.gutenberg.org/etext/660
(this is the first of several parts, do a search for the others)
 
lots of links for other free/online dictionaries here:
http://en.wikipedia.org/wiki/Dictionary
 
you'd just download the dictionary, put the .txt file in the data folder of your sketch, and use loadStrings() to read in all the info.  
 
good luck!
 
(edit: that gutenberg dictionary is quite large as it turns out.. way more detail than you need. but i'd check the other links to get something simpler)
« Last Edit: Feb 5th, 2005, 7:41pm by fry »  
Manuel


Re: Dictionary access
« Reply #3 on: Feb 7th, 2005, 10:27am »

great! ill give it a shot and report back.
 
take care,
 
manuel
 
Pages: 1 

« Previous topic | Next topic »