Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

BreakSentences

Breaking sentences more meaningfully.

Often times when inserting a sentence(string) into a predefined database, we run into column character limitations.

Yes, you can use a truncate function but that end up creating meaningless sentences/words. Not to mention depending on where is breaks, sentence now could have words that you never want to see/display.

Let's say sentence is, "Quick brown fox jumps over the lazy dog" and breaking at 19(i.e. getting the 19th leftmost characters), would make it "Quick brown fox jum".

I know nothing harmful there but I think I we can be little smarter than that.

A smarter result would look something like, "Quick brown fox"

About

Breaking sentences more meaningfully

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.