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.

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.

Deliberately uses fixed intents, not a CommonQuerySkill - 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. See DEVELOPMENT.md for the full reasoning.

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

Release files for ovos-skill-geography 0.0.1

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.1
File Size Uploaded
ovos_skill_geography-0.0.1.tar.gz 87.8 kB Details

Built distribution (wheel)

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

Total release size: 198.6 kB

Release files / ovos_skill_geography-0.0.1.tar.gz

Download URL ovos_skill_geography-0.0.1.tar.gz
Size 87.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cdd6189e14ecf47c7e0d4d2356217d56c1fadeeb584e3186f7527e0793392dc6
BLAKE2b-256 checksum
How to use checksums
82ffb78bd37e5f620d81e452c3336c91bceb20e56221c5826c1bfa529d0ecdb7
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 Aug 17, 2026.

Transparency log

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

Download URL ovos_skill_geography-0.0.1-py3-none-any.whl
Size 110.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0e00804cc8f22844836e7b4a940bebf6187085f9839773f63bc3c2e4a463205
BLAKE2b-256 checksum
How to use checksums
8cfabb1fca7e198c71f266515fd6199e47092cb2a5dea625d5aa995db44893a6
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 Aug 17, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.3

2 release files

0.0.2

2 release files

This release

0.0.1 This release

2 release files

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