pathall
November 14, 2022, 9:10pm
1
That’s the Tweet!
In my unlikely dreamworld, this would be possible:
let query = "Cherokee"
let url = "https://glottolog.org/api/search?query=Cherokee&etc=otherStuff"
let response = await fetch(url)
let info = await response.json()
document.body.innerHTML = `<h1>WOW</h1><pre></pre>`
document.querySelector('pre').textContent = JSON.stringify(info, null, 2)
And then depending on the search params, info
could contain different stuff, like:
Family tree breadcrumbs
Glottocodes (and maybe those decrepit ISO-369-3
codes too )
Alternate names
Other stuff?
Glottolog all the things.
xrotwng
November 15, 2022, 10:59am
2
2 Likes
xrotwng
November 15, 2022, 11:04am
3
Oh, and given Glottolog’s license, you are free to ship/host copies of any of this data yourself, too, possibly making the whole cross-domain request thing go away.
2 Likes
xrotwng
November 15, 2022, 12:08pm
4
So, if I desperately wanted to have a HTTP API for Glottolog data, my first try would be
This will get you an API as described here Pages and API endpoints - Datasette documentation
1 Like
hp3
November 16, 2022, 6:50am
5
I was going to say the same thing… why not just integrate the data directly? — just set up a cron job to slurp the newest data…
Do cron jobs have cronies?
skalyan
November 21, 2022, 3:41am
7
Good news: there’s a new R package called “glottospace” that provides full access to Glottolog data! CRAN - Package glottospace
Full disclosure: I was one of the reviewers for this package.
2 Likes
pathall
November 21, 2022, 3:23pm
8
Very cool! Hey @lneyens you might be interested in this.