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.

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.2

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.2
File Size Uploaded
ovos_skill_geography-0.0.2.tar.gz 90.6 kB Details

Built distribution (wheel)

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

Total release size: 207.1 kB

Release files / ovos_skill_geography-0.0.2.tar.gz

Download URL ovos_skill_geography-0.0.2.tar.gz
Size 90.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d09b3ac8c71a2604f6be3561cafc44b327aa6074bf1d09967c1fcb489a37e15c
BLAKE2b-256 checksum
How to use checksums
be7134ba799055ce584626da7d63c79ee133336969da92bc3804b56423967cbd
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.2-py3-none-any.whl

Download URL ovos_skill_geography-0.0.2-py3-none-any.whl
Size 116.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1624dd0bbfd112994f2dd9a58994fe82a07e95031dfad102809e0787817f94a5
BLAKE2b-256 checksum
How to use checksums
f8dffa32137adb6ff0be88182011e63916cce41085f0f8d4815ac70614a19f0c
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

This release

0.0.2 This release

2 release files

0.0.1

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