1<?xml version="1.0" encoding="UTF-8"?> 2<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ruleset.xsd"> 3 <title>Contractions</title> 4 <rule> 5 <report>she would (not she’d)</report> 6 <regex> 7 <find>\b(s?he|it|that|they|we|what|who)(?:'|’)(d)\b</find> 8 <replace adjustcase="true" tentative="true">\1 woul\2</replace> 9 </regex> 10 </rule> 11 <rule> 12 <report>she will (not she’ll)</report> 13 <regex> 14 <find>\b(s?he|it|that|they|we|what|who)(?:'|’)(ll)\b</find> 15 <replace adjustcase="true" tentative="true">\1 wi\2</replace> 16 </regex> 17 </rule> 18 <rule> 19 <report>she is (not she’s)</report> 20 <regex> 21 <find>\b(s?he|it|that|what|who)(?:'|’)(s)\b</find> 22 <replace adjustcase="true" tentative="true">\1 i\2</replace> 23 </regex> 24 </rule> 25 <rule> 26 <report>we are (not we’re)</report> 27 <regex> 28 <find>\b(we|you|they)(?:'|’)(re)\b</find> 29 <replace adjustcase="true" tentative="true">\1 a\2</replace> 30 </regex> 31 </rule> 32 <rule> 33 <report>are not (not aren’t)</report> 34 <regex> 35 <find>\b(\w+)(?<!ca|sha|wo)(n)(?:'|’)(t)\b</find> 36 <replace adjustcase="true" tentative="true">\1 \2o\3</replace> 37 </regex> 38 </rule> 39 <rule> 40 <report>cannot (not can’t)</report> 41 <regex> 42 <find>\b(can)(?:'|’)(t)\b</find> 43 <replace adjustcase="true" tentative="true">\1no\2</replace> 44 </regex> 45 </rule> 46 <rule> 47 <report>shall not (not shan’t)</report> 48 <regex> 49 <find>\b(sha)(n)(?:'|’)(t)\b</find> 50 <replace adjustcase="true" tentative="true">\1ll \2o\3</replace> 51 </regex> 52 </rule> 53 <rule> 54 <report>will not (not won’t)</report> 55 <regex> 56 <find>\b(w)(o)(n)(?:'|’)(t)\b</find> 57 <replace adjustcase="true" tentative="true">\1ill \3\2\4</replace> 58 </regex> 59 </rule> 60</ruleset> 61 62 63 64 65