Back to LanguageTool Homepage - Privacy - Imprint

[pt] Ellipses (...)


(Marco A.G.Pinto) #1

@dnaber @Yakov

In Portuguese, when we write text after the ... the word doesn't necessary need to start uppercase.

Could the LanguageTool settings be default set in PT to cope with that?

Thanks!


(Andriy) #2

Well looking at the analysis in pt language the sentence with ... is split into two (that's why the rule triggers an error). It looks that you want to keep it as one sentence so you'll need to modify segment.srx file for Portuguese to not break on ellipsis if next letter is not capital.


(Yakov) #3

In common case for Portuguese the "..." sign is handled correctly.
The file https://github.com/languagetool-org/languagetool/blob/master/languagetool-core/src/main/resources/org/languagetool/resource/segment.srx has rule for that, but not for all possible cases.
Can you give example Portuguese text with "..." there the word doesn't necessary need to start uppercase after "..." ?


(Marco A.G.Pinto) #4

Here in the grammar book: "Prontuário da Língua Portuguesa", page 60:
"É que... não sei... é certo fazer isto?..."

It is written there that "..." signals an interruption in the speech and may omit one or more words in the speech... it can also be used "(...)" to cut parts of a speech.


(Yakov) #5

I changed segment.srx for symbol ellipses (…) and for 3 dots:


You can test it.
You can use Ratel for testing and changing segment.srx:
http://wiki.languagetool.org/customizing-sentence-segmentation-in-srx-rules


(Marco A.G.Pinto) #6

Thanks, Yakov!

I will test it with the nightly build tonight.