lexvsLMWhich spelling fits?

Quick tell: lex is a verb, LM is a noun, so they fill different roles in a sentence.

Which to use

“lex” is a verb and “LM” is a noun - they look or sound alike but fill different roles in a sentence.

#14,983
“lex” frequency rank
#20,416
“LM” frequency rank
35399
confusion score

Side-by-Side Comparison

Feature lex LM
Definition To perform lexical analysis; to convert a character stream to a token stream as a preliminary to parsing. Initialism of language model.

Letter map: lex vs LM

Shared letters muted; letters that set lex and LM apart highlighted. Shared run: 1.

3 ch
lex
2 ch
LM

Part-of-speech tell for lex / LM

Our dataset has no pronunciation recorded for both members, so the reliable separator here is grammatical: lex is averb and LManoun. On the page they differ by 1 letter(s) in length. Our composite confusion score for this pair is 35399, derived from the frequency rank of both members and their visual similarity.

lex is recorded at frequency rank #14,983, classified as averb, pronounced /lɛks/. LM is at rank #20,416, tagged as anoun.

Glosses for this pair are partially populated in our dataset, but the full side-by-side definitions above should still guide you to the right choice.

With a confusion score of 35399, this pair ranks #312,328 of 530,003 scored English confusable pairs - roughly mid-pack for confusability.

Orthographic DNA of lex vs LM

Shared letters: l. Private to "lex": ex. Private to "LM": m.

"lex" · 3 letters · shape CVC  ·  "LM" · 2 letters · shape CC

Frequently Asked Questions

Do "lex" and "LM" mean the same thing in a sentence?
No - they are not even the same part of speech. "lex" is a verb and "LM" a noun, so a sentence built for one is usually ungrammatical with the other.
In ordinary English text, does "lex" or "LM" show up more?
"lex" is the more common of the two: it sits at frequency rank #14,983 in our English list, against #20,416 for "LM". The two are close in frequency, so neither is a safe default; check the meaning rather than guessing.

What to do next

You've compared "lex" and "LM". Here's where to go from here.

  • Full dictionary entry for "lex" with definition, IPA, and generated misspellings. Word entry
  • Full dictionary entry for "LM" - compare definitions side by side with the headword page. Word entry
  • This pair ranks #312,328 of 530,003 scored English confusable pairs in this corpus vintage. Corpus statistics
  • "lex" and "LM" also get mixed up with nearby pairs, the highest-scored neighbour is "LM vs LSC". Nearby pair

Confusion rank #312,328 of 530,003 scored English pairs, corpus vintage 2026-09-03, not spelling advice.

Source: Wiktionary (via kaikki.org) Structured Wiktionary extract

Source: FrequencyWords open word-frequency list