errata-ai / Google

A Vale-compatible implementation of the Google Developer Documentation Style Guide.
MIT License
69 stars 23 forks source link

Additional action parameters #24

Closed ChrisChinchilla closed 1 year ago

ChrisChinchilla commented 1 year ago

Only a few small changes @jdkato

ChrisChinchilla commented 1 year ago

@jdkato I also wondered if rules with actions like this - https://github.com/errata-ai/Google/blob/8653227c6376cb07e431c506f463d4b0815217ac/Google/OptionalPlurals.yml#L7

Are just relics of Vale Server and if they can be changed from:

action:
  name: edit
  params:
    - remove
    - '(s)'

to just:

action:
  name: remove
jdkato commented 1 year ago

remove could be used here if it accepted a parameter, rather than just removing the entire match. In other words, there are cases in which you only want to remove part of the match.