Type-Token Ratio Calculator

Type-Token Ratio Calculator

Enter your text sample in input field. The ttr calculator (lexical variety) will analyze the total words (tokens) and unique words (types). Select whether to include or exclude numbers and punctuation. The calculator computes the TTR showing lexical variety.

  • Inputs: Text = “The quick brown fox jumps over the lazy dog”
  • Process: Enter text, exclude numbers and punctuation
  • Result: TTR = 0.778 (7 unique words / 9 total words)

How to Calculate Type-Token Ratio

To find the Type-Token Ratio, count the number of unique words (types) in your text. Then count the total words (tokens) including repetitions. Divide the number of types by the number of tokens. The result ranges from 0 to 1, with higher numbers indicating greater vocabulary diversity.

  • Inputs: Text contains 20 unique words out of 40 total words
  • Calculations: 20 ÷ 40 = 0.5 TTR
  • Result: 0.5 indicates moderate lexical variety

Type-Token Ratio Formula

TTR = Number of Types ÷ Number of Tokens

Where:
Types = Count of unique words
Tokens = Total word count
TTR Range = 0.0 to 1.0

Example Calculations

Short Story Analysis

  • Inputs: Types = 85 unique words, Tokens = 100 total words
  • Calculations: 85 ÷ 100
  • Result: TTR = 0.85 (high lexical diversity)

Research Abstract

  • Inputs: Types = 45 unique words, Tokens = 75 total words
  • Calculations: 45 ÷ 75
  • Result: TTR = 0.60 (moderate variety)

Technical Document

  • Inputs: Types = 120 unique words, Tokens = 300 total words
  • Calculations: 120 ÷ 300
  • Result: TTR = 0.40 (frequent word repetition)

News Article

  • Inputs: Types = 150 unique words, Tokens = 250 total words
  • Calculations: 150 ÷ 250
  • Result: TTR = 0.60 (balanced vocabulary)

Blog Post

  • Inputs: Types = 95 unique words, Tokens = 150 total words
  • Calculations: 95 ÷ 150
  • Result: TTR = 0.633 (good lexical variety)

What is TTR?

Type-Token Ratio (TTR) measures lexical variety in a text by comparing the number of unique words to total words. A higher ratio indicates greater vocabulary diversity, while a lower ratio suggests more word repetition. TTR helps evaluate writing complexity and style.

Standard Ranges:
0.0-0.4: Low variety
0.4-0.7: Moderate variety
0.7-1.0: High variety

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *