Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 772543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:49:07+00:00 2026-05-14T18:49:07+00:00

I need to segment text using fullstops using PHP/Javascript.The problem is if I use

  • 0

I need to segment text using fullstops using PHP/Javascript.The problem is if I use “.” to split text then abbreviations , date formatting (12.03.2010 ) or urls as well split-ed , which I need to prevent.There are many such possibilities , I might not be able to imagine.
How to recognize that the “.” is used as fullstop and nothing else ?

When I googled I found about SRX http://www.lisa.org/fileadmin/standards/srx20.html , is any opensource PHP project segment text using these rules ?

I can do with any Linux based command line utility as well unless it is not paid.

This issue deals with cases where segment is breaking with a dot (.) as it is considered as Fullstop.We need to distinguish between a dot(.) and a Fullstop

Cases where . are not fullstops :

  1. http://www.yahoo.com’>it is a good link. i liked it

    – only one valid fullstop

  2. This is a test case. Lets try it no valid fullstop

    http://www.yahoo.com’>Testing is done by amold12@…. – no valid fullstop

  3. Mr. Abc is in town today – no valid fullstop

  4. S. Khan had done it – no valid fullstop
  5. The U.S. is emerging from a recession. – no valid fullstop

As for as code is concerned – I am using javascript text.split(“.”) method

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:49:08+00:00Added an answer on May 14, 2026 at 6:49 pm

    Human language is quirky. Whatever rules you come up with some corner case is likely to defeat you. How important is it that you are 100% accurate? Would missing the occasional full stop really matter? Or would being a tad too aggressive really matter. If your objective is (for example) to come up with some statistical anlysis of sentance length in published material, then I doubt that some over or under counting would be crucial.

    My suggestion would be to look for patterns such as

    full-stop space(s) Capital letter
    full-stop quote
    full-stop new line
    

    Run that across your sample text and see what anomalies remain.

    Your’s sincerely, David J. N. Artus. (not a complete sentance yet because I didn’t use a . in that way, and that previous . isn’t one either. But that last . was.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to build a string variable using jQuery to find all the text
Is there any variant to draw a circular segment using just CSS/CSS3? I need
I need to fix a issue for xss vulnerability. the code segment is below.
Need a map reduce function by mongo in php This my mongo structure [_id]
I have some text on an HTML page. Need a bookmarklet (no jQuery) that
I have HTML which looks something like this: <span id=text> <span class=segment id=first>some text</span>
I need a method of inserting javascript which is controller/action specific into a layout.
I have a segmented liver. I need to segment the tumor in it. I
I'm using Reporting Services 2005 and I'm in need of your expertise! I have
In code igniter I need to replace illegal characters of 4th segment with '-',

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.