# Word Lexicon Analyzer API

> Word Lexicon Analyzer inspects any single word to check linguistic properties including palindromes, isograms, and Scrabble validity. It identifies anagram potential, alphagram status, and sorted letter forms.

**Endpoint:** `GET https://api.apiverve.com/v1/lexicon`  
**Category:** Text Processing  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/lexicon

## Overview

A word lexicon API for word games, puzzle generators and language tools. Pass any target string to the endpoint to evaluate its letter arrangement and letter repetition in a single call. The response computes alphabetical letter order, checks whether the word reads the same backwards, verifies if an anagram can form a palindrome, and flags words with no repeating letters.

You get the sorted letter form (the alphagram, as Scrabble players call it), which is the standard key for grouping anagrams, plus true or false flags for palindrome, isogram, alphagram and palindrome-anagram. That covers the checks most word-game backends need, such as validating a palindrome checker answer, finding isograms for a puzzle, or indexing a word list by sorted letters.

The Scrabble flag looks the word up in the public-domain ENABLE word-game list (with the later two-letter words such as qi and za), and the anagram flag checks that list for another word with the same letters. All fields are returned on every plan, including the Free plan.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/lexicon?word=listen" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `word` | string | Yes | The word to analyze |

## Response fields

- `word` — string · The analyzed word
- `isAlphagram` — boolean · Whether the word's letters are already in alphabetical order
- `sortedForm` — string · The word's letters sorted alphabetically, used to match anagrams
- `isPalindrome` — boolean · Whether the word is a palindrome
- `hasAnagram` — boolean · Whether another English word uses exactly the same letters
- `isIsogram` — boolean · Whether the word repeats no letter
- `isPangramCandidate` — boolean · Whether the word contributes rare letters useful in a pangram
- `isScrabbleValid` — boolean · Whether the word is in the bundled English word list (letters a-z only, no proper nouns)
- `canBePalindromeAnagram` — boolean · Whether the letters can be rearranged into a palindrome

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "word": "listen",
    "isAlphagram": false,
    "sortedForm": "eilnst",
    "isPalindrome": false,
    "hasAnagram": false,
    "isIsogram": true,
    "isPangramCandidate": false,
    "isScrabbleValid": true,
    "canBePalindromeAnagram": false
  }
}
```

## Use cases

- **Word Game Validation** — Puzzle game backends verify player submissions against Scrabble eligibility and immediately flag valid palindromes for bonus scoring.
- **Anagram Puzzle Generation** — Crossword and puzzle constructors use sorted letter forms to group matching anagrams and test word rearrangements for hidden riddles.
- **Vocabulary Drill Generation** — Language learning platforms detect isograms and alphagrams to build spelling exercises focused on words with non-repeating letters.
- **Pangram Challenge Construction** — To build daily pangram challenges, editorial teams filter candidate lists to find terms that supply rare and uncommon letters.

## SDKs

- **npm** — `npm install @apiverve/lexicon` (https://www.npmjs.com/package/@apiverve/lexicon)
- **NuGet** — `dotnet add package APIVerve.API.WordLexiconAnalyzer` (https://www.nuget.org/packages/APIVerve.API.WordLexiconAnalyzer)
- **Source** — https://github.com/apiverve/lexicon-api

## More

- Full reference: https://docs.apiverve.com/ref/lexicon
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
