Find words by pattern
solve_word_patternRead-onlyIdempotent
Use this when the user needs words that fit a pattern of known and unknown letters, such as a crossword answer (C?T, _A_E, 7 letters ending in ING), with optional letters that must or must not appear. Counts every matching dictionary word and lists up to 120 of them, common words first. Does not solve clues by meaning or look up definitions. Do not use for unscrambling a set of letters (use solve_anagram).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | Word length when there is no pattern, or to check it, e.g. 7 for a 7-letter crossword answer. | |
| pattern | No | Known letters with ? (or _ or .) for each unknown letter and * for any run of letters, e.g. C?T, _A_E, ??ANGE, or S*ING. Spaces are ignored. | |
| exclude_letters | No | Letters that must not appear anywhere, e.g. AEIO. | |
| include_letters | No | Letters that must appear somewhere (repeat a letter to require it twice), e.g. RS. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| more | Yes | ||
| note | Yes | ||
| total | Yes | ||
| words | Yes | ||
| filters | Yes | ||
| pattern | Yes | ||
| by_length | Yes | ||
| common_total | Yes |