20 lines
513 B
XML
20 lines
513 B
XML
|
<?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>
|
||
|
|