Strng-Contractor
Takes a string and works out augmentations with different contractions. This includes full expansions and contractions, as well as all possible combinations of either.
For example I am sure it's a good example
will contract to I'm sure it's a good example
. It will expand to
I am sure it has a good example
I am sure it is a good example
since it's could mean it is or it has. All possible combinations gives us
I'm sure it's a good example
I'm sure it has a good example
I'm sure it is a good example
I am sure it's a good example
I am sure it has a good example
I am sure it is a good example
Using it
In typescript
stringContractor.contractinputstringContractor.expandinputstringContractor.allinput
In javascript
const StringContractor = default const stringContractor = const input = "I am sure it's a good example" stringContractorstringContractorstringContractorallinput
Data Source
The data for the contractions comes from a slightly modified form of the wikipedia list