views:

137

answers:

4

I found http://words.bighugelabs.com/api.php but nothing like this for definitions/dictionary.

Ideally I'd grab a dictionary file and build my own API for this, but this is for a demo and we need something short-term that can be called from within a javascript function.

A: 

Not sure if it would fit your needs, but answers.com has webmaster tools that offer various services, including dictionary lookup. Don't know if any can be called from javascript.

Jim
Doesn't appear to be much use for what I am trying to do, but thank you.
FilmJ
+1  A: 

I think this is what you are looking for

Cheers

Ramesh Vel

Ramesh Vel
If you read my question, I already know of big huge labs, and the point is to find an alternative that does dictionary lookups that can be called from JS. SOAP based webservices aren't very javascript friendly, but thank you for your help.
FilmJ
A: 

At short notice you could set up a reverse-proxy on your server that lets you AJAX your favorite dictionary website and then 'scrape' the definitions from the document that is returned. It's obviously not a long term solution but for a one time thing, you probably won't get into trouble.

neonski
Well, this may be my only option at this point - I'm surprised there isn't something more readily available, so maybe I'll build something and then others can use it too - as it seems like an incredibly common need.
FilmJ
+2  A: 

wiktionary.org provides an API for example:

http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=Television&format=json

gives back

    {
       "query": {"searchinfo": {"totalhits": 208862},
       "search": [{ 
           "ns": 0, 
           "title": "Television", 
           "snippet": "<span class='searchmatch'>Television<\/span> (TV) is a widely used telecommunication  medium  for transmitting and receiving moving images , either monochromatic  (\"black  <b>...<\/b> ",
           "size": 28228, 
           "wordcount": 3566, 
           "timestamp": "2009-10-02T15:09:56Z"},
...
       ]},
       "query-continue": {"search": {"sroffset":10}}
    }
RC