punctuator v0.2.12
The package receives a string and replaces all punctuation words into symbols. This package was created for research purposes. You are welcome to use it at your own risk.
Usage:
const punctuator = require('punctuator');
console.log(punctuator.punctuate(my_srr));- End of sentence punctuation (e.g.:
!?.;) automatically remove a white-space before them. - Mid sentence punctuation (e.g.:
,:#`<>/) automatically remove white-space both before and after them. - Open brackets of any type (e.g.:
([{automatically remove white-space before them and after them. - Close brackets of any type (e.g.:
)]}automatically remove white-space before them. - To force a white-space (
) use: whitespace/ white-space/ white space - Use test_quotes.txt file located in the package, to test.
List of replacements symbol text-option-one/text-options-2
replaces white-space before, keeps white-space after
. period/full stop
, comma
! exclamation mark/exclamation point
? question marks
; semicolon/semi colon/semi-colon
: colon
] close brackets/close square brackets
) close parentheses/close round brackets
} close braces
replaces white-space before and after
... ellipsis marks/ellipsis points
_ underscore
$ dollar sign
% percent sign
# hash sign/pound sign/number sign
" quotation mark/double quotes/quotes
' apostrophe/single quote
& ampersand
` grace accent
< less than sign
> greater than sign
+ plus sign
@ at sign
* asterisk
[ open brackets/open square brackets
( open round brackets/open parentheses
{ open braces
- dash/hyphen/minus sign
/ slash
\ backslash
forces a white-space
whitespace/white-space/white space
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago