Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.

Lexical Tools

Replace Punctuation with Spaces

  • Short Description: Replace punctuation with spaces.

  • Full Description:

    Replace punctuation with spaces from the input term. Punctuations include punctuations defined in Java Character class:

    • DASH_PUNCTUATION (20): -
    • START_PUNCTUATION (21): ( { [
    • END_PUNCTUATION (22): ) } ]
    • CONNECTOR_PUNCTUATION (23): _
    • OTHER_PUNCTUATION (24): ! @ # % & * \ : ; " ' , . ? /
    • MATH_SYMBOL (25): ~ + = | < >
    • CURRENCY_SYMBOL (26): $
    • MODIFIER_SYMBOL (27): ` ^

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

  • Difference: None

  • Features:
    1. Replace character with a space if the character belongs to above punctuation list.


  • Symbol: o

  • Examples:
    
    shell> lvg -f:o
    2-aryl-1,3-dithiolane
    2-aryl-1,3-dithiolane|2 aryl 1 3 dithiolane|2047|16777215|o|1|
    
    More examples

  • Implementation Logic:
    1. Go through every character of the input term, replace it with a space if the character is a punctuation.

  • Source Code: ToReplacePunctuationWithSpace.java

  • Hierarchy: Object -> Transformation -> ToReplacePunctuationWithSpace