Word Size Filter

  • Short Description: Filter words from input by specified word size.

  • Full Description:

    This flow filters out words with size less than the specified word size. This function was known as global behavior options in C version.

    No effect on the -m option. "none" is added at the end of the output.

  • Difference: None

  • Features:
    1. Filter out words with size less than the specified word size.


  • Symbol: ws

  • Examples:
    
    shell> lvg -f:ws~3
    Academy of Physical Medicine
    Academy of Physical Medicine|Academy Physical Medicine|2047|16777215|ws|1|
    
    American Association on Mental Deficiency
    American Association on Mental Deficiency|American Association Mental Deficiency|2047|16777215|ws|1|
    
    More examples

  • Implementation Logic:
    1. Tokenize the input using space and tab as delimiters.
    2. Filter out tokens with size less than the specified word size.
    3. Compose the term by words.

  • Source Code: ToWordSize.java

  • Hierarchy: Object -> Transformation -> ToWordSize