Skip to main content

Geography

Geography facts for the 194 independent UN member states - capital, continent/region, land borders, area, currency, and official language(s). Fully offline: all data is bundled as static JSON, no external lookups at runtime. Available in English, Danish, German, French, and Spanish.

Tests PyPI version

Facts

  • "what is the capital of France" - handles multi-capital countries (only South Africa in this dataset) by naming all of them.
  • "what continent is Kenya in"
  • "what countries border Germany" - explicit "doesn't share a border" response for island nations.
  • "how big is Brazil" - area in square kilometers.
  • "what currency does Japan use"
  • "what language do they speak in Egypt" - handles countries with multiple official languages.
  • "tell me about Afghanistan" - a combined overview in one sentence (continent, capital, and borders together) - shares its sentence-builder with ovos-skill-geography-practice's teach mode, see DEVELOPMENT.md.

Usage

"what is the capital of France"
"what continent is Kenya in"
"what countries border Germany"
"how big is Brazil"
"what currency does Japan use"
"what language do they speak in Egypt"
"hvad er hovedstaden i Frankrig"          (Danish)
"hvor stort er Brasilien"                 (Danish)
"was ist die hauptstadt von Frankreich"   (German)
"welche währung hat Japan"                (German)
"quelle est la capitale de la France"     (French)
"quelle langue parle-t-on en Égypte"      (French)
"cuál es la capital de Francia"           (Spanish)
"qué moneda usa Japón"                    (Spanish)

A utility skill, not an educational one

This provides FACTS on demand - it doesn't quiz or teach. ovos-skill-geography-practice depends on this package directly (imports its data and lookup functions) for its quiz mode, the same relationship ovos-skill-unit-practice has with ovos-skill-convert.

Fixed intents are the primary path - this package's curated offline dataset should always be authoritative for its own domain, not compete on a confidence score against online knowledge skills (e.g. Wolfram Alpha) for the same question. A narrow Common Query safety net also exists (handle_common_query()) for when the platform's own routing sends a question elsewhere before our intent gets a chance - found via live testing, see DEVELOPMENT.md.

Data sourcing and licensing

Country/capital/region/border/area/currency/language data from mledoze/countries (ODbL-1.0), trimmed to the 194 independent UN member states. Country/ currency/language names in da/de/fr/es come from Unicode CLDR (via Babel + pycountry, used only as one-off data-generation tools, not runtime dependencies). Region/subregion names are hand-translated. Full attribution and licensing details: CREDITS.md, including a note on a similar prior skill (OVOSHatchery/ovos-skill-countries) that doesn't work today (dead API since 2021) and why this is a fresh build rather than a fix to that one.

Known simplifications

  • Capital names in da/de/fr/es are partial, best-effort - no CLDR-equivalent source exists for city names. See CREDITS.md.
  • Language name coverage is ~86-89% (CLDR + pycountry) - the remainder (obscure regional/minority languages) fall back to the source dataset's own English name rather than a guessed translation.
  • Spoken country names with a leading article ("la France", "die Türkei") are handled with a simple prefix-strip (ARTICLE_PREFIXES in __init__.py), not full grammatical parsing.
  • No population or timezone data - population figures go stale quickly; timezone isn't in the current source dataset's schema at all (see CREDITS.md).
  • Scope is 194 independent UN member states only.

Install

pip install ovos-skill-geography

Development

See DEVELOPMENT.md.

Category

Information

Tags

#geography #reference #capitals #countries

Metadata

Release files for ovos-skill-geography 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-skill-geography 0.0.4
File Size Uploaded Provenance Actions
ovos_skill_geography-0.0.4.tar.gz 92.5 kB With provenance Details for ovos_skill_geography-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ovos-skill-geography 0.0.4
File Interpreter ABI Platform Actions
ovos_skill_geography-0.0.4-py3-none-any.whl Python 3 none any Details for ovos_skill_geography-0.0.4-py3-none-any.whl

Total release size: 210.6 kB

Release files / ovos_skill_geography-0.0.4.tar.gz

Download URL ovos_skill_geography-0.0.4.tar.gz
Size 92.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9974a335e5fc0e40e17f0cec7c22a4d752e12715aefda13a59245235223b9eea
BLAKE2b-256 checksum
How to use checksums
8bf112e076920d67a8137072bf7c85764a6a065f5f356903b57115f4944c7b6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release files / ovos_skill_geography-0.0.4-py3-none-any.whl

Download URL ovos_skill_geography-0.0.4-py3-none-any.whl
Size 118.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b8e8af648710cb6450ef64f21e678c8bc4ea66e33cb59baa2cf0b5845064f45
BLAKE2b-256 checksum
How to use checksums
100f8a0696972a7b4b28c182815a8c43c89be9e64def819f5a0819a524ab548a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Security for ovos-skill-geography 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ovos_skill_geography-0.0.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page