Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dictionary definitions class/script? 2

Status
Not open for further replies.

Sleidia

Technical User
May 4, 2001
1,284
FR
Hello :)

I would like to know if there are existing PHP classes/scripts that can retrieve the definition of any word from a remote dictionary database and display it on my own website.

I need one that can work with both French and English.

For example :
... would display the definition of the word "webdesigner" on my page (with additional use of URL rewriting).

Thanks for the help :)
 
le-dictionnaire.com? just write a scraper for it.
 
Hi

There is a special DICT protocol for such tasks. While there are a number of client and server applications, and there is a C library, is possible to exist a PHP library too. I would try to search for them.


Feherke.
 
there is a pear class for DICT (pear:net_dict).

but I do not know of any french lexicon dict servers (there are quite a few translation servers).
 
This might be a little off field for what you want but have a look at the Google Language API's at you might need to dig about a bit to find the thing you want as the have AJAX versions and a RESTfull version (which I would use)
In my mind once I found a good English dictionary you only need to translate it not to find a possiblly different definition. The really good thing about the google stuff is your not just limited to french but just about all modern languages.
 
Thanks but yeah, that's not what I'm looking for because what I need is the definition of the word not its translation.
Thanks anyway.
 
Hi Sleidia - yes, there is a risk, but you would cache the definitions so it is unlikely that you would hit the server too much or too hard unless your site is very high traffic.

and I see that the site does not (seem to) do any session management so a curl scraper should work ok without having to worry about cookies.

I'm assuming, as well, that you do not need to get a definition for every word ....

there is also, of course, larousse on line which offers another scraping opportunity.

Note that I am not saying that either site allows scraping.
 
Thanks :)

Seems like a good idea but unlike kDictAPI-PRO, french online dictionaries fail to provide definition for technical words such as PHP, html, css, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top