Setup vale

This commit is contained in:
Vijay Janapa Reddi
2025-03-22 16:06:48 -04:00
parent 12b7ed51aa
commit 673d726ba9
6 changed files with 52 additions and 0 deletions

5
.vale.ini Normal file
View File

@@ -0,0 +1,5 @@
StylesPath = .vale/styles
MinAlertLevel = suggestion
[*.{md,qmd}]
BasedOnStyles = textbook

6
.vale/config.ini Normal file
View File

@@ -0,0 +1,6 @@
StylesPath = styles
MinAlertLevel = suggestion
[*.{md,qmd}]
#BasedOnStyles = textbook, write-good, proselint
BasedOnStyles = textbook, write-good

View File

@@ -0,0 +1,6 @@
extends: capitalization
message: "Use sentence case in section headings."
level: suggestion
scope: heading
match: $sentence

View File

@@ -0,0 +1,9 @@
extends: substitution
message: "Use the Oxford comma in lists for clarity."
level: suggestion
ignorecase: true
swap:
# Common pattern: list of three items without Oxford comma
'(\b\w+\b), (\b\w+\b) and (\b\w+\b)': '\1, \2, and \3'

View File

@@ -0,0 +1,9 @@
extends: substitution
message: "Use '{{suggestion}}' instead of '{{match}}' for consistency."
level: warning
ignorecase: true
swap:
latency: execution time
learning phase: training
hardware usage: resource utilization
neural network: machine learning system

View File

@@ -0,0 +1,17 @@
extends: substitution
message: "Avoid '{{match}}'; prefer '{{suggestion}}'."
level: warning
ignorecase: true
swap:
delve: analyze
underscore: emphasize
foster: support
facilitate: enable
leverage: use
holistic: comprehensive
pivotal: critical
nuanced: detailed
shed light on: explain
a myriad of: many
cutting-edge: modern
state-of-the-art: advanced