extends: substitution message: "Use '%s' instead of '%s'." link: 'https://developers.google.com/style/abbreviations' ignorecase: true level: error nonword: true action: name: replace # The delimiter is a lookahead so the replacement doesn't swallow the comma or # space that follows (issue #18). `$` is included so the abbreviation is still # caught at the end of a heading, table cell, or block, which accounted for 8 # of 10 occurrences on a 950-file corpus. swap: '\b(?:eg|e\.g\.)(?=[\s,;]|$)': for example '\b(?:ie|i\.e\.)(?=[\s,;]|$)': that is