text_anagram_generator
Generate anagrams from any text by rearranging its letters. Returns all permutations for inputs up to 8 characters, random shuffles for longer, with statistics and frequency map.
Instructions
Anagram Generator. Rearrange the letters of the supplied text into anagrams and return them with per-anagram length/is-original flags, summary statistics, and a character-frequency map. Input is cleaned to letters and digits only (punctuation/spaces removed) before permuting. For 8 or fewer cleaned characters it enumerates every distinct permutation deterministically; for longer input it emits random shuffles, so results vary between calls and are not idempotent. Operates only on the input's own letters — it does not consult a dictionary or wordlist, so outputs are letter rearrangements, not real words; for palindrome detection use text_palindrome_checker and for shuffling words/lines use text_randomizer. Pure local compute: read-only, non-destructive, offline, and rate-limited (60 requests/min for anonymous callers). Returns the anagram list, counts, and character frequencies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Source text to rearrange; cleaned to letters/digits before permuting. Required and non-empty. | |
| maxResults | No | Maximum number of anagrams to return. Clamped into 1-1000. | |
| minLength | No | Minimum length an anagram must have to be included; also the minimum cleaned-text length (shorter input is rejected with 400). Clamped into 1-50. | |
| includeOriginal | No | When true the original (unshuffled) arrangement may appear in results; when false it is excluded. | |
| caseSensitive | No | When false the cleaned text is lowercased before permuting; when true case is preserved. | |
| sortBy | No | Ordering of the returned anagrams. length sorts longest-first; any other value sorts alphabetically. | alphabetical |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Always true on success. | |
| result | No | Anagram results and derived statistics. | |
| options | No | The effective parameters after clamping/normalization. |