Strip NEC and NOS
- Short Description:
Strip NEC and NOS
- Full Description:
Strips the strings "NOS" (an acronym for "Not Otherwise Specified") and "NEC" (an acronym for "Not Elsewhere Classified"). These strings can be found as part of Metathesaurus concept names.
No effect on the -m option. "none" is added at the end of the output.
- Difference:
- Java version trims output terms (remove spaces at the beginning and ending of the term).
- Java version does not strip stop words while it is conjoint with punctuations (except for ',').
- Features:
- Strip NEC AND NOS
- Strip NEC/NOS$
- Strip NEC, NOS$
- Strip ,NEC$
- Strip ,NOS$
- Strip , NEC$
- Strip , NOS$
- Strip (NEC)
- Strip (NOS)
- Strip NEC
- Strip NOS
where $ is the end the string.
- Remove ',' if it is at the end of the stripped output.
- Symbol:
0
- Examples:
shell> lvg -f:0
ACCIDENTS NEC AND NOS
ACCIDENTS NEC AND NOS|ACCIDENTS|2047|16777215|0|1|
More examples
Implementation Logic:
- Initialize the string list to be stripped (if first time).
- Append " $" to the input term.
- Strip out all stripping strings.
- Remove "$" from the end of the term if it exists.
- Trim the term.
- Remove "," from the end of the term if it exists.
- Trim the term.
Source Code: ToStripNecNos.java
Hierarchy: Object -> Transformation -> ToStripNecNos