HomeText toolsText Word N-Gram Frequency

Text Word N-Gram Frequency

Count adjacent word-token phrases of one through five tokens in supplied text.

Processing stays in your browser. Tokens use Unicode letters and numbers with internal apostrophes. There is no stemming or sentence-boundary model, and languages without spaces may need language-specific segmentation.

How to use the text word n-gram frequency

Review text, words per phrase, maximum reported phrases, case using the supplied example. Replace it with your own input, choose Run tool, and compare the result with the worked example and method below. Edits clear the previous result; copy or download after review.

How the tool works

Count adjacent word-token phrases of one through five tokens in supplied text. Frequency sorting exposes repeated phrases without a language model or remote text service.

Worked example

View the example inputs
Text
red blue red blue green
Words per phrase
2
Maximum reported phrases
20
Case
Fold case

The phrase red blue occurs twice in the sample bigram count.

Good to know

Tokens use Unicode letters and numbers with internal apostrophes. There is no stemming or sentence-boundary model, and languages without spaces may need language-specific segmentation.

Sources and implementation notes

Implemented by DevBricks Technologies. Method notes updated . References describe the underlying format, method or API. Local processing runs on your device. Any public provider queries are described above and start when you run the lookup.

Keep the physical model separate from a build decision

List the physical quantities and convert them to the units shown by the input labels. Record the operating conditions and reference conventions before substituting values. An ideal model can be useful for checking relationships, but loading, tolerances, environmental conditions and component limitations may fall outside it. Start with a small case that can be checked by hand.

Inputs and settings explained

Text
Paste the text as plain text using the demonstrated structure. Keep meaningful line breaks, quotation marks and separators. Start with a small representative example and increase its size only after the output is understood. Read the tool's restrictions before including unsupported syntax or binary data.
See the demonstration value
red blue red blue green
Words per phrase
Enter a numeric value for words per phrase, using the units and bounds indicated by the label and method notes. The demonstration uses 2. Check signs and scale before calculating; a percentage, fraction and whole-number count have different meanings.
See the demonstration value
2
Maximum reported phrases
Enter a numeric value for maximum reported phrases, using the units and bounds indicated by the label and method notes. The demonstration uses 20. Check signs and scale before calculating; a percentage, fraction and whole-number count have different meanings.
See the demonstration value
20
Case
Choose the case setting that matches your task. Available choices: Fold case; Keep case. The supplied example selects Fold case. Compare the result after changing this setting; the options describe different operations or conventions.

How to review the result

Check dimensions, signs and limiting behavior rather than relying on the apparent precision of the answer. Compare the calculation with the relevant datasheet, measurement or established design procedure for the actual system. If an assumption is violated, use a different analysis instead of interpreting the number as a safe operating recommendation. For signals, sample rate, normalization and feedback-sign conventions are part of the definition of the result.

  • Confirm input units, reference values and the operating regime required by the model.
  • Inspect component ratings, tolerances and loading separately from an ideal calculation.
  • Validate a proposed design with appropriate measurements and qualified review.

Common questions about this workflow

Does a calculated value establish that a circuit or structure is safe?

No. The calculation covers its stated model and supplied inputs. Safety, compliance, manufacturing tolerances and fault conditions require the checks appropriate to the actual application.

Why does a measurement differ from the ideal result?

Real components and environments introduce effects that a simplified model may omit. Check units, measurement setup, loading and operating conditions first, then determine whether the model needs additional terms or a different regime.

Built by DevBricks Technologies. Found an unexpected result in Text Word N-Gram Frequency? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.