---
name: toki-pona-dictionary
description: Searches nimi.li for toki pona words by English meaning. Use when the user asks for toki pona translations, wants to look up toki pona words, mentions nimi.li, or needs to find how to say something in toki pona. Also triggers on "toki pona dictionary", "toki pona translation", or "how to say X in toki pona".
compatibility: Requires Python 3 and internet access
---

# Searching nimi.li for toki pona words

Searches the nimi.li toki pona dictionary by English meaning. Fetches all word data once (caches to cwd), then searches definitions and community usage tags without hitting the network again.

## Step 1: Fetch data (once per project/session)

```bash
python3 SCRIPTS_DIR/search-nimi.li.py fetch
```

Creates `nimi-data-raw.json` and `nimi-words.json` in cwd. Re-run only if data seems stale or the user asks about a recently coined word.

## Step 2: Search

```bash
python3 SCRIPTS_DIR/search-nimi.li.py friend
python3 SCRIPTS_DIR/search-nimi.li.py water food
```

Each argument is a separate search. This is deliberate: toki pona compounds words (e.g. "friend" = `jan pona`, "watercraft" = `tomo tawa`), so searching each concept independently is more useful than searching exact phrases.

## What you get

Each result includes the toki pona word and its English definition. The `ku_data` field maps English synonyms to community usage scores — useful for finding words that aren't in the main definition but are commonly associated.
