0.2.12 • Published 4 years ago

punctuator v0.2.12

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

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

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.8

4 years ago

0.2.5

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.1.10

4 years ago

0.2.0

4 years ago

0.1.12

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago