ComfyUI > Nodes > ComfyUI Level Pixel > Keep Only English Words [LP]

ComfyUI Node: Keep Only English Words [LP]

Class Name

KeepOnlyEnglishWords|LP

Category
LevelPixel/Text
Author
LevelPixel (Account age: 647days)
Extension
ComfyUI Level Pixel
Latest Updated
2026-02-24
Github Stars
0.03K

How to Install ComfyUI Level Pixel

Install this extension via the ComfyUI Manager by searching for ComfyUI Level Pixel
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Level Pixel in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Keep Only English Words [LP] Description

Filters text to retain only words composed of English alphabetic characters.

Keep Only English Words [LP]| Keep Only English Words [LP]:

The KeepOnlyEnglishWords| Keep Only English Words [LP] node is designed to filter and retain only English words from a given text input. This node is particularly useful when you need to clean up text data by removing non-English words, ensuring that the output text is composed solely of English vocabulary. This can be beneficial in various scenarios, such as preparing text for language-specific processing or analysis, where non-English words might introduce noise or inaccuracies. The node works by examining each word in the input text and determining if it is composed entirely of English alphabetic characters. If a word meets this criterion, it is retained in the output; otherwise, it is discarded. This functionality helps maintain the integrity and relevance of text data in English-centric applications.

Keep Only English Words [LP]| Keep Only English Words [LP] Input Parameters:

text

The text parameter is the primary input for the KeepOnlyEnglishWords| Keep Only English Words [LP] node. It accepts a string of text, which can be multiline, and serves as the source from which English words will be extracted. The parameter is crucial as it determines the content that will be processed by the node. The input text should be provided in a format where words are separated by spaces, and it can include punctuation. The node will analyze each word in the text to decide whether it should be included in the output based on its composition. There are no explicit minimum or maximum values for this parameter, but it is essential to ensure that the text is correctly formatted to achieve the desired filtering effect.

Keep Only English Words [LP]| Keep Only English Words [LP] Output Parameters:

text TEXT

The text TEXT output parameter provides the filtered version of the input text, containing only the words that are identified as English. This output is a string where non-English words have been removed, and punctuation is adjusted to ensure proper formatting. The importance of this output lies in its ability to deliver a clean and focused text dataset, which is particularly useful for applications that require English-only content. The output maintains the original sentence structure as much as possible, ensuring that the resulting text is coherent and ready for further processing or analysis.

Keep Only English Words [LP]| Keep Only English Words [LP] Usage Tips:

  • Ensure that the input text is well-formatted, with words separated by spaces, to maximize the effectiveness of the English word filtering.
  • Use this node in conjunction with other text processing nodes to prepare data for English-specific natural language processing tasks, such as sentiment analysis or keyword extraction.

Keep Only English Words [LP]| Keep Only English Words [LP] Common Errors and Solutions:

Input text is empty

  • Explanation: This error occurs when the input text parameter is left empty or contains only whitespace.
  • Solution: Provide a valid string of text as input to ensure the node can process and filter the words correctly.

Non-English words not removed

  • Explanation: If non-English words are not being removed, it may be due to incorrect identification of characters as English.
  • Solution: Verify that the input text is correctly formatted and does not contain special characters or encodings that might interfere with the English word detection.

Keep Only English Words [LP] Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Level Pixel
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Keep Only English Words [LP]