Skip to main content

Math Practice

Math practice for kids (and anyone else) - counting, times table recitation, and interactive arithmetic quizzes across all four basic operations. Fully offline.

Tests PyPI version

Four modes, deliberately not one "do math" intent

  1. Counting - "count to ten" - pure recitation, no interaction.
  2. Table recitation - "say the 5 times table" - pure recitation of 1×5 through 10×5, no interaction. Multiplication only - addition/subtraction/division don't have a traditional "table" concept the same way, so this stays scoped to what "times table" actually means.
  3. Teach, then practice - "teach me the 5 times table" (or "teach me addition facts for 5" / "teach me subtraction facts for 5" / "teach me division facts for 5" - all four operations, not just multiplication) goes through the facts one row at a time (say "repeat" to hear a row again before moving on), then "quiz me on what you taught me" quizzes specifically on THOSE facts - not arbitrary random problems, and in the SAME operation that was taught. See "Teach-then-practice" below.
  4. Quiz - "quiz me on the 3 times table" / "quiz me on addition" - genuinely interactive: asks 5 questions one at a time, listens for a spoken answer, and reports a final score. Covers all four basic operations, not just multiplication - this was an explicit scope correction from the original "times tables" framing during design.

Usage

"count to ten"
"say the 5 times table"
"teach me the 5 times table"
"teach me addition facts for 5"
"teach me subtraction facts for 5"
"teach me division facts for 5"
"quiz me on what you taught me"
"quiz me on the 3 times table"
"quiz me on addition"
"give me a math quiz"
"tæl til ti"                    (Danish)
"sig 5 tabellen"                (Danish)
"lær mig 5 tabellen"            (Danish)
"lær mig plus for 5"            (Danish)
"quiz mig i det du lærte mig"   (Danish)
"quiz mig i 3 tabellen"         (Danish)

Teach-then-practice

The reference implementation of the pattern shared across the whole *-practice family (see issue #1 for the original design discussion, since resolved and extended to all four operations). "teach me the 5 times table" speaks each row in turn, waits for either "repeat" (says the same row again) or anything else (moves to the next row), and records exactly which facts were presented AND which operation they belong to. "quiz me on what you taught me" then quizzes ONLY on that recorded set, in the same operation, reusing the same grading logic as the regular quiz mode (_ask_and_grade()), rather than generating fresh random problems.

Started multiply-only (mirroring "times table" recitation), then generalized to all four operations via a shared FACT_TABLE_GENERATORS registry - addition/subtraction/division each get their own "N-facts table" generator, mirroring multiplication's table shape (subtraction and division specifically constructed so results stay non-negative / evenly divide, matching the same rules the regular quiz mode already enforces).

Deliberately session-only for this release: self._taught_facts resets when the skill restarts - it doesn't persist across days. This was a scoped-down choice from the original design discussion, which also considered persisting taught facts (via self.settings or a local file) so "quiz me on what you taught me" would still work in a later session. Kept simple for v1; worth revisiting if session-only turns out to be a real limitation in practice rather than a theoretical one.

How the quiz works

Unlike ovos-skill-metronome/ ovos-skill-rhythm-box/ ovos-skill-white-noise, quiz mode needs no background thread - it's a sequential, blocking conversation using OVOSSkill.get_response(), which already handles the listen-and-transcribe round-trip. Each of the 5 questions is asked, answered (or timed out), and scored in turn; a timed-out or unparseable answer counts as incorrect rather than crashing the quiz.

Problem generation defaults

  • 5 questions per quiz round.
  • Times tables: the traditional 1-12 range.
  • Addition/subtraction: operands 1-20, subtraction always kept non-negative (larger number first).
  • Division: always divides evenly (built as divisor × quotient, both 1-10) - no fractional answers, since spoken fraction-checking is a much harder problem than this skill attempts to solve.

Install

pip install ovos-skill-math-practice

Development

See DEVELOPMENT.md.

Category

Education

Tags

#math #education #times-tables #quiz #kids

Release files for ovos-skill-math-practice 0.0.3

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-math-practice 0.0.3
File Size Uploaded
ovos_skill_math_practice-0.0.3.tar.gz 32.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-skill-math-practice 0.0.3
File Interpreter ABI Platform
ovos_skill_math_practice-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 71.8 kB

Release files / ovos_skill_math_practice-0.0.3.tar.gz

Download URL ovos_skill_math_practice-0.0.3.tar.gz
Size 32.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4077ea552e30b791b77fd6e458cd58fe422dfa092231a96eb17ae8702a1cf933
BLAKE2b-256 checksum
How to use checksums
60e6ba4c3f85244d731e5c96b1574c1c96c239af29b36de5f7073c6d8a48609b
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 16, 2026.

Transparency log

Release files / ovos_skill_math_practice-0.0.3-py3-none-any.whl

Download URL ovos_skill_math_practice-0.0.3-py3-none-any.whl
Size 39.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cc460ebf994bcfc08283f1583442ed8c5949d247ee01d5e79dfa1aa0774f4a5
BLAKE2b-256 checksum
How to use checksums
328a85b69e2351e34099c5ec31f1dc30a18ada148beab18c3f09424415c256fb
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 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.4

2 release files

This release

0.0.3 This release

2 release files

0.0.2

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