Closed emylonas closed 3 years ago
This isn't an API, but you can link to a word in the Perseus dictionary using a URL in this form:
http://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext%3A1999.04.0059%3Aentry%3DCaesar
where the last string is the word. Note that the %3D is an equal sign encoded so it can appear in a URL.
we might be able to just grab the HTML by copying the <div type="text-container">
directly from the web page. (I may have spelled the div type incorrectly, closed the inspector too soon)
I found some more information on this github site. saving the URL here so we don't lose it. It's the CLTK people trying to figure out how to get Perseus data into their ctlk app in 2016. They also link to the master perseus dictionary list. and also some Perseus grammatic parsing
http://www.perseus.tufts.edu/hopper/morph?l=Arma&la=la
parses the word
provides output in XML: http://www.perseus.tufts.edu/hopper/xmlmorph?lang=la&lookup=virum
but no dictionary link. This would be great for Greek, but we have to convert our unicode greek into betacode.
done
The lemma should also have a link to a dictionary. @emylonas needs to look into best site to link to or to use API.