-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
French : replace all apostrophes by a single quotation mark #10963
Comments
I’m also very curious about the answer to this question. Those rules don’t seem to be activated, neither on my local server, nor on LibreOffice Extension: |
These rules are active only in picky mode. I'm not sure if the LibreOffice add-on has an option to activate that. The browser add-on and API have. |
I missed that these have |
Thank you for the fast answer. This is very interesting. I noticed that it was written in those rules “ Apparently, no. All the rules are not enabled by default! But, that leads me to another question: why?
|
Scanning e.g.: <rulegroup id="ECRITURE_INCLUSIVE" name="écriture inclusive" tone_tags="general">
<rule>
<pattern>
<token postag="N.*" postag_regexp="yes">
<exception regexp="yes">(?-i)[A-Z].*</exception>
<exception postag="V.* (ind|con|sub).*" postag_regexp="yes"/></token>
<token regexp="yes">ou|et</token>
<token><match no="0"/>e
<exception regexp="yes">(?-i)[A-Z].*</exception>
<exception postag="V.* (ind|con|sub).*" postag_regexp="yes"/></token>
</pattern>
<message>Par politesse, le féminin précède le masculin en français.</message>
<suggestion>\3 \2 \1</suggestion>
<suggestion><match no="1" postag="(N) ([fm]) ([ps])" postag_regexp="yes" postag_replace="$1 m $3"/>·e</suggestion>
<example correction="étudiante ou étudiant|étudiant·e">Pour l'<marker>étudiant ou étudiante</marker>.</example>
</rule>
<rule default="off">
<antipattern>
<token postag="J . sp?" postag_regexp="yes"/>
<token>son</token>
</antipattern>
<pattern>
<token postag="D m s">
<exception regexp="yes">tel|telle|nul|(?-i)CE</exception></token>
<token regexp="yes">et|ou</token>
<token postag="D f s"/>
<token postag="N e s">
<exception scope="next" spacebefore="no" regexp="yes">[\[\(]</exception></token>
</pattern>
<message>Une autre structure peut sembler plus percutante.</message>
<suggestion>les \4s</suggestion>
<example correction="les photographes">Il parle avec <marker>le ou la photographe</marker>.</example>
</rule>
<rule>
<pattern>
<token>le</token>
<token regexp="yes">et|ou</token>
<token postag="D f s"/>
<token postag="N [fm] s" postag_regexp="yes">
<exception scope="next" spacebefore="no" regexp="yes">[\[\(]</exception></token>
</pattern>
<message>Une autre structure peut sembler plus percutante.</message>
<suggestion>la personne \4</suggestion>
<suggestion>\1 <match no="4" postag="(N) ([fm]) (s)" postag_regexp="yes" postag_replace="$1 ([em]) $3"/>·e</suggestion>
<example correction="la personne professeur|le professeur·e">Il parle avec <marker>le ou la professeur</marker>.</example>
</rule>
<rule>
<pattern>
<token>un
<exception scope="previous">l'</exception></token>
<token regexp="yes">et|ou</token>
<token postag="D f s"/>
<token postag="N [fm] s" postag_regexp="yes">
<exception scope="next" spacebefore="no" regexp="yes">[\[\(]</exception></token>
</pattern>
<message>Une autre structure peut sembler plus percutante.</message>
<suggestion>la personne \4</suggestion>
<suggestion>un·e <match no="4" postag="(N) ([fm]) (s)" postag_regexp="yes" postag_replace="$1 ([em]) $3"/>·e</suggestion>
<example correction="la personne professeur|un·e professeur·e">Il parle avec <marker>un ou une professeur</marker>.</example>
</rule>
</rulegroup> or <rule id="MAIS_SENT_START_2" name="'Mais' en début de phrase" tone_tags="formal" default="off">
<antipattern>
<token postag="SENT_START"/>
<token skip="3">mais</token>
<token postag="SENT_END"/>
</antipattern>
<antipattern>
<token postag="SENT_START"/>
<token>mais</token>
<token postag="A"><exception regexp="yes">beaucoup|contrairement|déjà|devant|derrière</exception></token>
<token postag="[DPZR].*" postag_regexp="yes"/>
</antipattern>
<antipattern>
<token postag="SENT_START"/>
<token>mais</token>
<token>bon</token>
<token postag="[DPZR].*" postag_regexp="yes"/>
</antipattern>
<pattern>
<token postag="SENT_START"/>
<marker>
<token case_sensitive="yes">Mais</token>
<token><exception negate="yes" regexp="yes">\p{L}[\p{L}'-]*</exception></token>
</marker>
</pattern>
<message>L'utilisation de "Mais" en première position dans une phrase n'est pas incorrecte, mais plutôt un parti pris stylistique. Vous pouvez l'accompagner d'une virgule pour marquer une pause.</message>
<suggestion>\3</suggestion>
<suggestion>\2, \3</suggestion>
<url>https://www.academie-francaise.fr/car-en-debut-de-phrase#:~:text=Les%20conjonctions%20de%20coordination%20ne,pas%20de%20m%C3%AAme%20pour%20car.</url>
<example correction="Il|Mais, il"><marker>Mais il</marker> lui était impossible de revenir en arrière.</example>
<example correction="Çağan|Mais, Çağan"><marker>Mais Çağan</marker> était carrément vert.</example>
<example>Il me semble que cet homme est inconscient, mais il n'a pas l'air d'être blessé.</example>
<example>Mais peu importe.</example>
<example>Mais bon Sophie est rentré à nouveau chez elle.</example>
</rule> There is also a lot in grammar.xml. |
In a very old documentation (https://web.archive.org/web/20120102085443/http://www.languagetool.org/development/) I found this:
It does not seem to be accurate anymore. And I still don't understand why there is the |
Hi :)
|
Thanks for the answer! Too bad there is no GUI to switch these interesting rules (that are existing) back on. |
How can I activate the rule to correct the apostrophe by the right single quotation mark?
In French, the apostrophe is not correct.
https://fr.wikipedia.org/wiki/Apostrophe_(typographie).
The text was updated successfully, but these errors were encountered: