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:
- 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:
- 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