(best-match query results)
query
is a string used to search Wikipedia in search-wiki
call
results
is a vector of tuples [title link]
Best match is determined by the following criteria:
query
and title
, return it`query` is a string used to search Wikipedia in `search-wiki` call `results` is a vector of tuples `[title link]` Best match is determined by the following criteria: - If there is exact match between `query` and `title`, return it - Otherwise return the first result (trusting Wikipedia's search algorithm)
(call-wiki params)
(extract-page-content query)
(fetch-page title)
(fetch-page title
{:keys [n-sentences format] :or {n-sentences 5 format "json"}})
(search-wiki-titles query)
Searh Wikipedia for query
and return a vector of tuples [title link]
Searh Wikipedia for `query` and return a vector of tuples `[title link]`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close