xml-copy-editor-code/src/rulesets/Repetition.xml

20 lines
513 B
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ruleset.xsd">
<title>Repetition</title>
<rule>
<report>one word</report>
<regex>
<find>\b(\w+) \1\b</find>
<replace tentative="true">\1</replace>
</regex>
</rule>
<rule>
<report>two words</report>
<regex>
<find>\b(\w+ \w+) \1\b</find>
<replace tentative="true">\1</replace>
</regex>
</rule>
</ruleset>