Skip to main content

gamesentenceminer

GSM (GameSentenceMiner)

Turn your gaming time into language mastery.


🎮 See it in Action

Demo Gif

  • OCR to get get text from a game that doesn't support text hooks.
  • Look up words with Yomitan in game.
  • Create Anki cards with game audio + screenshot (or gif) automatically.

What does it do?

GSM is an application designed to automate the process of creating flashcards while you play. It sits between your game and Anki, handling audio recording, screenshots, and OCR so you don't have to interrupt your gameplay.

📝 Anki Card Enhancement

GSM automatically adds context to your Anki cards whenever you create them.

  • Audio Capture: Uses Voice Activity Detection (VAD) to record and trim the specific voice line associated with the text.
  • Screenshots: Captures the game state the moment the line is spoken. GIFs and Black Bar Removal are supported.
  • Mine from History: Go back and create cards from previous lines you've encountered (i.e. cutscenes).
  • Multi-Line Support: Capture multiple lines of dialogue into one card using the built-in Texthooker.
  • AI Translation: Optional integration to provide sentence translations using your own API key.

https://github.com/user-attachments/assets/df6bc38e-d74d-423e-b270-8a82eec2394c

👁️ OCR (Text Recognition)

For games that don't have a text hook (Agent/Textractor), GSM uses a custom fork of OwOCR to read text directly from the screen.

This opens up all kinds of posssibilities for games that would otherwise be inaccessible for language learning/sentence mining. For example I've made cards with games like Metal Gear Solid 1+2, Titanfall 2, and Sekiro, all using GSM's OCR.

  • Easy Setup: Managed installation means you don't need to fiddle with terminals.
  • Two-Pass System: Clean, fast output similar to as if you had a hook.
  • Customizable Capture Zones: Define exactly where text appears on your screen for optimal results.

https://github.com/user-attachments/assets/07240472-831a-40e6-be22-c64b880b0d66

🖥️ Overlay

GSM includes a transparent overlay for instant dictionary lookups.

  • Hover over characters in-game to see definitions via Yomitan.
  • Create cards without ever leaving the game window.
  • Automatically Generated Furigana Display In Game.

Overlay Demo

📊 Statistics

Track your immersion habits with the stats dashboard.

  • Kanji Grid: View every Kanji you've encountered and click them to see their source sentences.
  • Goals: Set daily reading targets.
  • Tools: Clean up and organize your mining history.

stats


🚀 Getting Started

  1. Download: Get the latest release.
  2. Install: Watch the Installation Guide.
  3. Requirements:
    • An Anki tool (Yomitan, JL, etc.)
    • A text source (Agent, Textractor, or GSM's built-in OCR)
    • A game

📚 Documentation

For full setup guides and configuration details, check the Wiki (Currently WIP).

❤️ Acknowledgements

Integrated Components

This project includes modified versions of the following libraries, I got tired of submodule hell so I've included them directly here for easier management all credits go to the original authors:

Star History

Star History Chart

Sponsors

Free code signing provided by SignPath.io, certificate by SignPath Foundation.

Download files

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

Source Distribution

gamesentenceminer-2026.8.1.tar.gz (31.3 MB view details)

Uploaded Source

Built Distributions

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

gamesentenceminer-2026.8.1-cp310-abi3-win_amd64.whl (31.7 MB view details)

Uploaded CPython 3.10+Windows x86-64

gamesentenceminer-2026.8.1-cp310-abi3-manylinux_2_28_x86_64.whl (31.8 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

gamesentenceminer-2026.8.1-cp310-abi3-macosx_12_0_arm64.whl (31.8 MB view details)

Uploaded CPython 3.10+macOS 12.0+ ARM64

File details

Details for the file gamesentenceminer-2026.8.1.tar.gz.

File metadata

  • Download URL: gamesentenceminer-2026.8.1.tar.gz
  • Upload date:
  • Size: 31.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for gamesentenceminer-2026.8.1.tar.gz
Algorithm Hash digest
SHA256 5905a07a5232ab5bdcc79e747f43aa8cefed83f71326d5a335f5da047004bf02
MD5 e0212cfaf3086718e70f2e49fb4abb5b
BLAKE2b-256 e4a234974a79914c4348b4f018e722157d516f828f36c966b790771eab92382e

See more details on using hashes here.

File details

Details for the file gamesentenceminer-2026.8.1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for gamesentenceminer-2026.8.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 dd9f29fcf4fdaeefc32a5ad7411ad49e596ace3a845ed60e2c6817cca06cb02b
MD5 8fded53590a93eecaabc691c38131d6e
BLAKE2b-256 b1d3b508e37f660d14c3a654653fd4a4185f9c62412959bd55fa0b7519e47752

See more details on using hashes here.

File details

Details for the file gamesentenceminer-2026.8.1-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gamesentenceminer-2026.8.1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 419e920c3e0ec1c6e70736c7d9626a6d141f6b1a83457ffe75aaf74f074d9efb
MD5 1667aa86e957806d1c818ce98f3fa9c5
BLAKE2b-256 4e0efe15550f4fc99305d5f0b99e161d4c698188f1fcfacac3ea92d62855f633

See more details on using hashes here.

File details

Details for the file gamesentenceminer-2026.8.1-cp310-abi3-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for gamesentenceminer-2026.8.1-cp310-abi3-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 0eea266655d50a8744b14c84e0af9e56f4f8c0134ed922a7a475d12327cbcb22
MD5 bd3bc0305ca5f3485070212f40396127
BLAKE2b-256 7a03cb2e087265bdf74ce3fbd5cd21b5a120d35d14f1976975e05559fd24bb3e

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

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