Discussion:
Bug in how LC handles sentences
Tore Nilsen via use-livecode
2018-11-16 23:22:59 UTC
Permalink
I have come across what I think must be a bug in how LC handles sentences. When a sentence begins with a number, it is not counted as a sentence if the previous sentence ends with a full stop. If the previous sentence end with a question mark or an exclamation mark, then the sentence starting with a number is counted as a sentence. I am on Indy, 9.0.1, MacOS 10.14.2.

Anyone who can confirm this?

Best regards
Tore Nilsen
Tore Nilsen via use-livecode
2018-11-16 23:36:56 UTC
Permalink
Answering my own question:

This bug report: 15690 <https://quality.livecode.com/show_bug.cgi?id=15690> states that it is not a bug, next sentence just needs to start with a capital letter.


I would still say it is a bug, as it is recognized as a sentence if previous sentence ends with anything but full stop. A sentence may well start with a number!


Best regards
Tore Nilsen
Post by Tore Nilsen via use-livecode
I have come across what I think must be a bug in how LC handles sentences. When a sentence begins with a number, it is not counted as a sentence if the previous sentence ends with a full stop. If the previous sentence end with a question mark or an exclamation mark, then the sentence starting with a number is counted as a sentence. I am on Indy, 9.0.1, MacOS 10.14.2.
Anyone who can confirm this?
Best regards
Tore Nilsen
_______________________________________________
use-livecode mailing list
http://lists.runrev.com/mailman/listinfo/use-livecode
Tore Nilsen via use-livecode
2018-11-16 23:47:30 UTC
Permalink
After some thinking I actually do agree it is not a bug. The problem being that full stop (period) can also be used in abbreviations, and numbers can follow immediately after such abbreviations.

Tore
Post by Tore Nilsen via use-livecode
I would still say it is a bug, as it is recognized as a sentence if previous sentence ends with anything but full stop. A sentence may well start with a number!
Tom Glod via use-livecode
2018-11-17 00:37:58 UTC
Permalink
I just did a test ....

"Sentence 1. Sentence 2. Sentence 3. 4 sentences are here."

Recognizes only 3 sentences.

". " (period space) then should be recognized as a sentence delimiter. and
1 letter sentences could maybe be ignored as acronyms., and also we can
read whether the period is preceded or followed by a number.

I guess there is no way to make it error proof.... but this example seems
way too common to fail.


On Fri, Nov 16, 2018 at 6:47 PM Tore Nilsen via use-livecode <
Post by Tore Nilsen via use-livecode
After some thinking I actually do agree it is not a bug. The problem being
that full stop (period) can also be used in abbreviations, and numbers can
follow immediately after such abbreviations.
Tore
17. nov. 2018 kl. 00:36 skrev Tore Nilsen via use-livecode <
I would still say it is a bug, as it is recognized as a sentence if
previous sentence ends with anything but full stop. A sentence may well
start with a number!
_______________________________________________
use-livecode mailing list
http://lists.runrev.com/mailman/listinfo/use-livecode
Sannyasin Brahmanathaswami via use-livecode
2018-11-17 13:21:41 UTC
Permalink
Post by Tom Glod via use-livecode
I just did a test ....
"Sentence 1. Sentence 2. Sentence 3. 4 sentences are here."
Recognizes only 3 sentences.
Ha! I would *never* get my editors to let a sentence starting with a
number, to go through. It will always come back to me with markup.

"Number at beginning: spell out."

Search for "Can I begin a sentence with a number?"

Of course, it is just a "writer's convention", but it is a strongly
enforced one.

Brahmanathaswami

Loading...