Skip to main content

Andrew Lang's Fairy Books provider skill for ovos-common-reading-pipeline-plugin

Project description

Andrew Lang Tales (provider)

A provider skill for ovos-common-reading-pipeline-plugin, delivering Andrew Lang's twelve "Coloured" Fairy Books.

"These fairy tales are the oldest stories in the world." — Andrew Lang, preface to The Green Fairy Book

Tests PyPI version

This skill has no standalone voice interface. It registers no intents and never speaks. It only answers ovos.common_reading.* bus messages, so you also need ovos-common-reading-pipeline-plugin installed and added to your pipeline config for it to be useful at all.

English only, no translation. Unlike ovos-skill-andersen-tales/ ovos-skill-grimm-tales (real per-language sources) or ovos-skill-ovosblog/ovos-skill-arxiv-papers (machine-translated), this provider has no non-English content and does not attempt to translate - the stories themselves are long, literary prose, where per-request machine translation is both expensive and a much bigger quality risk than translating a short blog post or paper abstract (see ovos-common-reading-pipeline-plugin#5 for the reasoning). Your OVOS device's language needs to be set to English (en-*) to get good results from this provider - on other languages, matching against these English-only titles won't work well and stories will still be read in English regardless.

Install

pip install ovos-skill-andrew-lang-tales ovos-common-reading-pipeline-plugin

Story index

Unlike the other providers here, the story index (title, book, author, Project Gutenberg anchor per story) is bundled with this package (locale/en-us/index.json), not scraped live - browsing/matching needs no internet at all. Only fetching a specific story's actual text (once chosen) needs a live request to Project Gutenberg.

382 stories across 11 of Andrew Lang's 12 "Coloured" Fairy Books (the 12th, the Olive Fairy Book, uses an incompatible page-based anchor scheme on Gutenberg and isn't included - tracked as a known gap, see scripts/build_lang_index.py's docstring).

The index was built once via scripts/build_lang_index.py, which:

  • Fetches Andrew Lang's master index (Gutenberg ebook #30580)
  • Repairs anchors for books Gutenberg has since re-published with a different scheme (Red and Brown Fairy Books)
  • Validates every entry actually extracts real text before including it

Languages

English only. Andrew Lang's Fairy Books are sourced from Project Gutenberg in English; no other language editions exist for this collection, and this provider makes no attempt to machine-translate (see the note above). A search from a non-English device falls back to matching against the English index, so results will be poor and stories will be read in English regardless of the device's configured language.

Collection hints

Responds to collection_hint values like "andrew lang", "lang", "the fairy books", matched fuzzily (see COLLECTION_ALIASES in __init__.py). "lang" alone is short enough to be worth double-checking for false positives - verified via match_one against "grimm", "andersen", "arxiv", "language", etc.

Content type

Identifies as content_type: "story" or "tale". A search with a content_type hint for anything else (e.g. "article", "paper") gets no response from this provider.

Credits

Content sourced from Project Gutenberg. Scraping/extraction logic ported from ovos-skill-worldtales (archived - this provider supersedes it).

Category

Entertainment

Tags

#stories #fairytales #gutenberg #provider

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos_skill_andrew_lang_tales-0.1.0.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_skill_andrew_lang_tales-0.1.0-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file ovos_skill_andrew_lang_tales-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ovos_skill_andrew_lang_tales-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c49516604fcbbb5c89a3ea8d2ec299425bca3b189cc80d03964d743426629717
MD5 ffa540660c26a19ae215ce388c4228f4
BLAKE2b-256 cf70c037d807272c9f31170cbcc6857ff84ba368e7cf056bf2e944d3a79c946a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ovos_skill_andrew_lang_tales-0.1.0.tar.gz:

Publisher: publish.yml on andlo/ovos-skill-andrew-lang-tales

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ovos_skill_andrew_lang_tales-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_skill_andrew_lang_tales-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36bc8864e38c180fe673d4b3004c3162979c9a7dfbbbe8acbfa269201a39a5c3
MD5 2ca9210ef8c017b992e38c8d84cc560d
BLAKE2b-256 58b677775372e6faa4b4617d537952f2e5bf57fc1238eb038b995a19179d2319

See more details on using hashes here.

Provenance

The following attestation bundles were made for ovos_skill_andrew_lang_tales-0.1.0-py3-none-any.whl:

Publisher: publish.yml on andlo/ovos-skill-andrew-lang-tales

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page