User guide & vale setup (#2260)
* refactored Storybook UI * refactored Storybook UI * removed extra cards from the doc, added card for ui components * added hover behavior to doc page & made it look selected * separate storybook docs and tests * separating storybook tests and docs * fixed spelling errors in docs * Final round of edits for frontend, added backend folder architecture * Created CODE_OF_CONDUCT.md * Add code of conduct to contributing.md * doc changes * fixed broken links * doc addition and changes * introduce user guide & graphql api * set up vale, added to docs * vale config file * revised backend best practices * connecting zapier and twenty * added warning for zapier
This commit is contained in:
12
.vale.ini
Normal file
12
.vale.ini
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
StylesPath = docs/vale/styles
|
||||||
|
|
||||||
|
MinAlertLevel = suggestion
|
||||||
|
|
||||||
|
Packages = write-good
|
||||||
|
|
||||||
|
[*.{md,mdx}]
|
||||||
|
BasedOnStyles = Vale, write-good, docs
|
||||||
|
|
||||||
|
|
||||||
|
[formats]
|
||||||
|
mdx = md
|
||||||
26
docs/docs/contributor/server/others/best-practices.mdx
Normal file
26
docs/docs/contributor/server/others/best-practices.mdx
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
title: Best Practices
|
||||||
|
sidebar_position: 3
|
||||||
|
sidebar_custom_props:
|
||||||
|
icon: TbChecklist
|
||||||
|
---
|
||||||
|
|
||||||
|
This document outlines the best practices you should follow when working on the backend.
|
||||||
|
|
||||||
|
## Follow a modular approach
|
||||||
|
|
||||||
|
We follow a modular approach for our backend, which is a fundamental principle when working with NestJS. Make sure you break down your code into reusable modules to maintain a clean and organized codebase.
|
||||||
|
Each module should encapsulate a particular feature or functionality and have a well-defined scope. This modular approach enables clear separation of concerns and removes unnecessary complexities.
|
||||||
|
|
||||||
|
|
||||||
|
## Expose services to be used in modules
|
||||||
|
|
||||||
|
We encourage creating services that have a clear and single responsibility, which enhances code readability and maintainability. Services should be named descriptively and consistently.
|
||||||
|
|
||||||
|
We also encourage exposing services to be used in other modules. Exposing services to other modules is made possible through NestJS's powerful dependency injection system, and promotes loose coupling between components.
|
||||||
|
|
||||||
|
## Avoid using `any` type
|
||||||
|
|
||||||
|
When you declare a variable as `any`, TypeScript's type checker doesn't perform any type checking, making it possible to assign any type of values to the variable. TypeScript is designed to use type inference to determine the type of variable based on the value. By declaring it as `any`, TypeScript can no longer infer the type. This makes it hard to catch type-related errors during development, leading to runtime errors and makes the code less maintainable, less reliable, and harder to understand for others.
|
||||||
|
|
||||||
|
This is why everything should be typed. So if you create a new object with a first name and last name, you should create an interface or type that contains a first name and last name that defines the shape of the object you are manipulating.
|
||||||
27
docs/docs/user-guide/connect-zapier.mdx
Normal file
27
docs/docs/user-guide/connect-zapier.mdx
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
title: Connect Twenty and Zapier
|
||||||
|
sidebar_position: 3
|
||||||
|
sidebar_custom_props:
|
||||||
|
icon: TbBrandZapier
|
||||||
|
---
|
||||||
|
|
||||||
|
:::caution
|
||||||
|
|
||||||
|
Twenty integration is currently being registered in the public Zapier repository, you may not find it until the publishing process is complete.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
Sync Twenty with 3000+ apps using [Zapier](https://zapier.com/), and automate your work. Here's how you can connect Twenty to Zapier:
|
||||||
|
|
||||||
|
1. Go to Zapier and log in.
|
||||||
|
2. Click on `+ Create Zap` in the left sidebar.
|
||||||
|
3. Choose the application you want to set as the trigger. A trigger refers to an event that starts the automation.
|
||||||
|
4. Select Twenty as the action. An action is the event that is performed once the automation is triggered. [Learn more about triggers and actions in Zapier.](https://zapier.com/how-it-works)
|
||||||
|
5. Once you choose the Twenty account that you want to use for your automation, you'll be prompted to authorize it by adding an API key. You can learn [how to generate your API key here.](generating-api-keys.mdx)
|
||||||
|
6. Enter your API key and click on 'Yes, Continue to Twenty.'
|
||||||
|
|
||||||
|
<div style={{textAlign: 'center'}}>
|
||||||
|
<img src="/img/user-guide/connect-zapier.png" alt="Connect Twenty to Zapier" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
You can now continue creating your automation!
|
||||||
@ -1,9 +1,41 @@
|
|||||||
---
|
---
|
||||||
title: Custom Objects
|
title: Creating Custom Objects
|
||||||
sidebar_position: 1
|
sidebar_position: 1
|
||||||
sidebar_class_name: coming-soon
|
|
||||||
sidebar_custom_props:
|
sidebar_custom_props:
|
||||||
icon: TbAugmentedReality
|
icon: TbAugmentedReality
|
||||||
---
|
---
|
||||||
|
|
||||||
Coming soon!
|
Objects are structures that allow you to store data (records, attributes, and values) specific to an organization. Twenty provides both standard and custom objects.
|
||||||
|
|
||||||
|
Standard objects are built-in objects with a set of attributes available for all users. All workspaces come with three standard objects by default: People, Companies, and Opportunities. Standard objects have standard fields that are also available for all Twenty users, like Account Owner and URL.
|
||||||
|
|
||||||
|
Custom objects are objects that you can create to store information that is unique to your organization. They are not built-in; members of your workspace can create and customize custom objects to hold information that standard objects aren't suitable for. For example, if you're Airbnb, you may want to create a custom object for Listings or Reservations.
|
||||||
|
|
||||||
|
## Creating a new custom object
|
||||||
|
|
||||||
|
To create a new custom object:
|
||||||
|
|
||||||
|
1. Go to Settings in the sidebar on the left.
|
||||||
|
2. Under Workspace, go to Data model. Here you'll be able to see an overview of all your existing Standard and Custom objects (both active and disabled).
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<div style={{textAlign: 'center'}}>
|
||||||
|
<img src="/img/user-guide/view-all-objects.png" alt="View all objects" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
3. Click on `+ New object` at the top, then choose Custom as the object type. Enter the name (both singular and plural) and description for your custom object and hit Save (at the top right). Using Listing as an example of custom object, the singular would be "listing" and the plural would be "listings" along with a description like "Listings that hosts created to showcase their property."
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<div style={{textAlign: 'center'}}>
|
||||||
|
<img src="/img/user-guide/create-custom-object.gif" alt="Create custom object" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
4. Once you create your custom object, you'll be able to manage it. You can edit the name and description, view the different fields, and add more fields.
|
||||||
|
|
||||||
|
<div style={{textAlign: 'center'}}>
|
||||||
|
<img src="/img/user-guide/manage-custom-object.png" alt="Create custom object" />
|
||||||
|
</div>
|
||||||
|
|||||||
26
docs/docs/user-guide/generating-api-keys.mdx
Normal file
26
docs/docs/user-guide/generating-api-keys.mdx
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
title: Generating an API Key
|
||||||
|
sidebar_position: 2
|
||||||
|
sidebar_custom_props:
|
||||||
|
icon: TbApi
|
||||||
|
---
|
||||||
|
|
||||||
|
To generate an API key:
|
||||||
|
|
||||||
|
1. Go to Settings in the sidebar on the left.
|
||||||
|
2. Under Workspace, go to Developers. Here, you'll see a list of active keys that you or your team have created.
|
||||||
|
3. To generate a new key, click on `+ Create key` on the top right.
|
||||||
|
4. Give your API key a name, an expiration date, and a logo.
|
||||||
|
5. Hit save to see your API key.
|
||||||
|
6. Since the key is only visible once, make sure you store it somewhere safe.
|
||||||
|
|
||||||
|
:::caution Note
|
||||||
|
|
||||||
|
You API key contains sensitive information, and shouldn't be shared with services you don't fully trust. If leaked, it can be used maliciously. If you think your API key has been compromised, make sure you disable it and generate a new one.
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
|
||||||
|
## Regenerating API key
|
||||||
|
|
||||||
|
To regenerate an API key, simply click on the key you want to regenerate. You'll then be able to see a button to regenerate the API key.
|
||||||
@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
title: Zapier tutorial
|
|
||||||
sidebar_position: 2
|
|
||||||
sidebar_class_name: coming-soon
|
|
||||||
sidebar_custom_props:
|
|
||||||
icon: TbBrandZapier
|
|
||||||
---
|
|
||||||
|
|
||||||
Coming soon!
|
|
||||||
@ -42,7 +42,6 @@ const config = {
|
|||||||
sidebarCollapsible: false,
|
sidebarCollapsible: false,
|
||||||
routeBasePath: "/",
|
routeBasePath: "/",
|
||||||
editUrl: "https://github.com/twentyhq/twenty/edit/main/docs/",
|
editUrl: "https://github.com/twentyhq/twenty/edit/main/docs/",
|
||||||
|
|
||||||
},
|
},
|
||||||
blog: false,
|
blog: false,
|
||||||
theme: {
|
theme: {
|
||||||
@ -59,6 +58,7 @@ const config = {
|
|||||||
image: "img/social-card.png",
|
image: "img/social-card.png",
|
||||||
colorMode: {
|
colorMode: {
|
||||||
defaultMode: "light",
|
defaultMode: "light",
|
||||||
|
respectPrefersColorScheme: false,
|
||||||
},
|
},
|
||||||
navbar: {
|
navbar: {
|
||||||
/*title: 'Twenty',*/
|
/*title: 'Twenty',*/
|
||||||
|
|||||||
@ -163,24 +163,28 @@ li.coming-soon a::after {
|
|||||||
color:inherit
|
color:inherit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu__list-item--level1 > .menu__link--active {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.menu__list-item--level1 > .menu__link--active > .icon-and-text {
|
.menu__list-item--level1 > .menu__link--active > .icon-and-text {
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Change text color to white for dark mode */
|
|
||||||
@media (prefers-color-scheme: dark) {
|
[data-theme='dark'] .menu__list-item--level1 > .menu__link--active > .icon-and-text {
|
||||||
.menu__list-item--level1 > .menu__link--active > .icon-and-text {
|
|
||||||
color: white;
|
color: white;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reset to the browser's default text color for other cases (light mode) */
|
|
||||||
.menu__list-item--level1 > .menu__link--active > .icon-and-text {
|
[data-theme='light'] .menu__list-item--level1 > .menu__link--active > .icon-and-text {
|
||||||
color: initial;
|
color: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.menu__list-item--level1 > .menu__link--active,
|
.menu__list-item--level1 > .menu__link--active,
|
||||||
.menu__list-item--level1 > .menu__link:hover {
|
.menu__list-item--level1 > .menu__link:hover {
|
||||||
background: inherit;
|
background: inherit;
|
||||||
|
|||||||
BIN
docs/static/img/user-guide/connect-zapier.png
vendored
Normal file
BIN
docs/static/img/user-guide/connect-zapier.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 378 KiB |
BIN
docs/static/img/user-guide/create-custom-object.gif
vendored
Normal file
BIN
docs/static/img/user-guide/create-custom-object.gif
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 MiB |
BIN
docs/static/img/user-guide/manage-custom-object.png
vendored
Normal file
BIN
docs/static/img/user-guide/manage-custom-object.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 344 KiB |
BIN
docs/static/img/user-guide/view-all-objects.png
vendored
Normal file
BIN
docs/static/img/user-guide/view-all-objects.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 357 KiB |
79
docs/vale/styles/docs/Acronyms.yml
Normal file
79
docs/vale/styles/docs/Acronyms.yml
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
extends: conditional
|
||||||
|
message: "'%s' has no definition."
|
||||||
|
level: warning
|
||||||
|
ignorecase: false
|
||||||
|
scope: paragraph
|
||||||
|
# Ensures that the existence of 'first' implies the existence of 'second'.
|
||||||
|
first: '\b([A-Z]{3,5})\b'
|
||||||
|
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
|
||||||
|
# ... with the exception of these:
|
||||||
|
exceptions:
|
||||||
|
- API
|
||||||
|
- ASP
|
||||||
|
- CLI
|
||||||
|
- CPU
|
||||||
|
- CSS
|
||||||
|
- CSV
|
||||||
|
- DEBUG
|
||||||
|
- DOM
|
||||||
|
- DPI
|
||||||
|
- FAQ
|
||||||
|
- GCC
|
||||||
|
- GDB
|
||||||
|
- GET
|
||||||
|
- GPU
|
||||||
|
- GTK
|
||||||
|
- GUI
|
||||||
|
- HTML
|
||||||
|
- HTTP
|
||||||
|
- HTTPS
|
||||||
|
- IDE
|
||||||
|
- JAR
|
||||||
|
- JSON
|
||||||
|
- JSX
|
||||||
|
- LESS
|
||||||
|
- LLDB
|
||||||
|
- NET
|
||||||
|
- NOTE
|
||||||
|
- NVDA
|
||||||
|
- OSS
|
||||||
|
- PATH
|
||||||
|
- PDF
|
||||||
|
- PHP
|
||||||
|
- POST
|
||||||
|
- RAM
|
||||||
|
- REPL
|
||||||
|
- RSA
|
||||||
|
- SCM
|
||||||
|
- SCSS
|
||||||
|
- SDK
|
||||||
|
- SQL
|
||||||
|
- SSH
|
||||||
|
- SSL
|
||||||
|
- SVG
|
||||||
|
- TBD
|
||||||
|
- TCP
|
||||||
|
- TODO
|
||||||
|
- URI
|
||||||
|
- URL
|
||||||
|
- USB
|
||||||
|
- UTF
|
||||||
|
- XML
|
||||||
|
- XSS
|
||||||
|
- YAML
|
||||||
|
- ZIP
|
||||||
|
- AWS
|
||||||
|
- REST
|
||||||
|
- MDX
|
||||||
|
- NPM
|
||||||
|
- SMS
|
||||||
|
- SID
|
||||||
|
- VIP
|
||||||
|
- UPS
|
||||||
|
- RMA
|
||||||
|
- JSONB
|
||||||
|
- USD
|
||||||
|
- SASL
|
||||||
|
- SCRAM
|
||||||
|
- FIRST
|
||||||
|
- CORS
|
||||||
119
docs/vale/styles/docs/ComplexWords.yml
Normal file
119
docs/vale/styles/docs/ComplexWords.yml
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
extends: substitution
|
||||||
|
message: "Consider using '%s' instead of '%s'."
|
||||||
|
ignorecase: true
|
||||||
|
level: suggestion
|
||||||
|
action:
|
||||||
|
name: replace
|
||||||
|
swap:
|
||||||
|
"approximate(?:ly)?": about
|
||||||
|
abundance: plenty
|
||||||
|
accelerate: speed up
|
||||||
|
accentuate: stress
|
||||||
|
accompany: go with
|
||||||
|
accomplish: carry out|do
|
||||||
|
accorded: given
|
||||||
|
accordingly: so
|
||||||
|
accrue: add
|
||||||
|
accurate: right|exact
|
||||||
|
acquiesce: agree
|
||||||
|
acquire: get|buy
|
||||||
|
additional: more|extra
|
||||||
|
address: discuss
|
||||||
|
addressees: you
|
||||||
|
adjacent to: next to
|
||||||
|
adjustment: change
|
||||||
|
admissible: allowed
|
||||||
|
advantageous: helpful
|
||||||
|
advise: tell
|
||||||
|
aggregate: total
|
||||||
|
aircraft: plane
|
||||||
|
alleviate: ease
|
||||||
|
allocate: assign|divide
|
||||||
|
alternatively: or
|
||||||
|
alternatives: choices|options
|
||||||
|
ameliorate: improve
|
||||||
|
amend: change
|
||||||
|
anticipate: expect
|
||||||
|
apparent: clear|plain
|
||||||
|
ascertain: discover|find out
|
||||||
|
assistance: help
|
||||||
|
attain: meet
|
||||||
|
attempt: try
|
||||||
|
authorize: allow
|
||||||
|
belated: late
|
||||||
|
bestow: give
|
||||||
|
cease: stop|end
|
||||||
|
collaborate: work together
|
||||||
|
commence: begin
|
||||||
|
compensate: pay
|
||||||
|
component: part
|
||||||
|
comprise: form|include
|
||||||
|
concept: idea
|
||||||
|
concerning: about
|
||||||
|
confer: give|award
|
||||||
|
consequently: so
|
||||||
|
consolidate: merge
|
||||||
|
constitutes: forms
|
||||||
|
contains: has
|
||||||
|
convene: meet
|
||||||
|
demonstrate: show|prove
|
||||||
|
depart: leave
|
||||||
|
designate: choose
|
||||||
|
desire: want|wish
|
||||||
|
determine: decide|find
|
||||||
|
detrimental: bad|harmful
|
||||||
|
disclose: share|tell
|
||||||
|
discontinue: stop
|
||||||
|
disseminate: send|give
|
||||||
|
eliminate: end
|
||||||
|
elucidate: explain
|
||||||
|
employ: use
|
||||||
|
enclosed: inside|included
|
||||||
|
encounter: meet
|
||||||
|
endeavor: try
|
||||||
|
enumerate: count
|
||||||
|
equitable: fair
|
||||||
|
equivalent: equal
|
||||||
|
exclusively: only
|
||||||
|
expedite: hurry
|
||||||
|
facilitate: ease
|
||||||
|
females: women
|
||||||
|
finalize: complete|finish
|
||||||
|
frequently: often
|
||||||
|
identical: same
|
||||||
|
incorrect: wrong
|
||||||
|
indication: sign
|
||||||
|
initiate: start|begin
|
||||||
|
itemized: listed
|
||||||
|
jeopardize: risk
|
||||||
|
liaise: work with|partner with
|
||||||
|
maintain: keep|support
|
||||||
|
methodology: method
|
||||||
|
modify: change
|
||||||
|
monitor: check|watch
|
||||||
|
multiple: many
|
||||||
|
necessitate: cause
|
||||||
|
notify: tell
|
||||||
|
numerous: many
|
||||||
|
objective: aim|goal
|
||||||
|
obligate: bind|compel
|
||||||
|
optimum: best|most
|
||||||
|
permit: let
|
||||||
|
portion: part
|
||||||
|
possess: own
|
||||||
|
previous: earlier
|
||||||
|
previously: before
|
||||||
|
prioritize: rank
|
||||||
|
procure: buy
|
||||||
|
provide: give|offer
|
||||||
|
purchase: buy
|
||||||
|
relocate: move
|
||||||
|
solicit: request
|
||||||
|
state-of-the-art: latest
|
||||||
|
subsequent: later|next
|
||||||
|
substantial: large
|
||||||
|
sufficient: enough
|
||||||
|
terminate: end
|
||||||
|
transmit: send
|
||||||
|
utilization: use
|
||||||
|
utilize: use
|
||||||
49
docs/vale/styles/docs/Contractions.yml
Normal file
49
docs/vale/styles/docs/Contractions.yml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
extends: substitution
|
||||||
|
message: "Use '%s' instead of '%s'."
|
||||||
|
level: suggestion
|
||||||
|
ignorecase: true
|
||||||
|
action:
|
||||||
|
name: replace
|
||||||
|
swap:
|
||||||
|
are not: aren't
|
||||||
|
cannot: can't
|
||||||
|
could not: couldn't
|
||||||
|
did not: didn't
|
||||||
|
do not: don't
|
||||||
|
does not: doesn't
|
||||||
|
has not: hasn't
|
||||||
|
have not: haven't
|
||||||
|
how is: how's
|
||||||
|
is not: isn't
|
||||||
|
|
||||||
|
'it is(?!\.)': it's
|
||||||
|
'it''s(?=\.)': it is
|
||||||
|
|
||||||
|
should not: shouldn't
|
||||||
|
|
||||||
|
'that is(?!\.)': that's
|
||||||
|
'that''s(?=\.)': that is
|
||||||
|
|
||||||
|
'they are(?!\.)': they're
|
||||||
|
'they''re(?=\.)': they are
|
||||||
|
|
||||||
|
was not: wasn't
|
||||||
|
|
||||||
|
'we are(?!\.)': we're
|
||||||
|
'we''re(?=\.)': we are
|
||||||
|
|
||||||
|
'we have(?!\.)': we've
|
||||||
|
'we''ve(?=\.)': we have
|
||||||
|
|
||||||
|
were not: weren't
|
||||||
|
|
||||||
|
'what is(?!\.)': what's
|
||||||
|
'what''s(?=\.)': what is
|
||||||
|
|
||||||
|
'when is(?!\.)': when's
|
||||||
|
'when''s(?=\.)': when is
|
||||||
|
|
||||||
|
'where is(?!\.)': where's
|
||||||
|
'where''s(?=\.)': where is
|
||||||
|
|
||||||
|
will not: won't
|
||||||
15
docs/vale/styles/docs/FirstPerson.yml
Normal file
15
docs/vale/styles/docs/FirstPerson.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Avoid using first person (such as '%s')"
|
||||||
|
ignorecase: true
|
||||||
|
level: error
|
||||||
|
nonword: true
|
||||||
|
tokens:
|
||||||
|
- (?:^|\s)I\s
|
||||||
|
- (?:^|\s)I,\s
|
||||||
|
- \bI'd\b
|
||||||
|
- \bI'll\b
|
||||||
|
- \bI'm\b
|
||||||
|
- \bI've\b
|
||||||
|
- \bme\b
|
||||||
|
- \bmy\b
|
||||||
|
- \bmine\b
|
||||||
10
docs/vale/styles/docs/Foreign.yml
Normal file
10
docs/vale/styles/docs/Foreign.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
extends: substitution
|
||||||
|
message: "Use '%s' instead of '%s'."
|
||||||
|
ignorecase: true
|
||||||
|
level: error
|
||||||
|
nonword: true
|
||||||
|
action:
|
||||||
|
name: replace
|
||||||
|
swap:
|
||||||
|
'\b(?:eg|e\.g\.)[\s,]': for example
|
||||||
|
'\b(?:ie|i\.e\.)[\s,]': that is
|
||||||
7
docs/vale/styles/docs/Gender.yml
Normal file
7
docs/vale/styles/docs/Gender.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Don't use '%s'."
|
||||||
|
level: error
|
||||||
|
ignorecase: true
|
||||||
|
tokens:
|
||||||
|
- he/she
|
||||||
|
- s/he
|
||||||
7
docs/vale/styles/docs/HeadingColons.yml
Normal file
7
docs/vale/styles/docs/HeadingColons.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Capitalize '%s'."
|
||||||
|
nonword: true
|
||||||
|
level: warning
|
||||||
|
scope: heading
|
||||||
|
tokens:
|
||||||
|
- ':\s[a-z]'
|
||||||
13
docs/vale/styles/docs/HeadingPunctuation.yml
Normal file
13
docs/vale/styles/docs/HeadingPunctuation.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Don't use end punctuation in headings."
|
||||||
|
link: https://medusajs.notion.site/Style-Guide-Docs-fad86dd1c5f84b48b145e959f36628e0#a5043fc5f8bc4b0b84f3ba494f817e42
|
||||||
|
nonword: true
|
||||||
|
level: warning
|
||||||
|
scope: heading
|
||||||
|
action:
|
||||||
|
name: edit
|
||||||
|
params:
|
||||||
|
- remove
|
||||||
|
- '.?!'
|
||||||
|
tokens:
|
||||||
|
- '[a-z][.?!](?:\s|$)'
|
||||||
7
docs/vale/styles/docs/Npm2Yarn.yml
Normal file
7
docs/vale/styles/docs/Npm2Yarn.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Consider adding npm2yarn to ```bash"
|
||||||
|
level: warning
|
||||||
|
scope: raw
|
||||||
|
ignorecase: true
|
||||||
|
raw:
|
||||||
|
- '```bash[\n]+npm'
|
||||||
10
docs/vale/styles/docs/NpmCommands.yml
Normal file
10
docs/vale/styles/docs/NpmCommands.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
extends: substitution
|
||||||
|
message: Use '%s' instead of '%s'
|
||||||
|
level: error
|
||||||
|
scope: raw
|
||||||
|
ignorecase: false
|
||||||
|
# swap maps tokens in form of bad: good
|
||||||
|
swap:
|
||||||
|
npm i: npm install
|
||||||
|
npm start: npm run start
|
||||||
|
npm build: npm run build
|
||||||
7
docs/vale/styles/docs/NpmGlobal.yml
Normal file
7
docs/vale/styles/docs/NpmGlobal.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "The -g option should be added at the end of the command"
|
||||||
|
level: error
|
||||||
|
scope: raw
|
||||||
|
ignorecase: true
|
||||||
|
raw:
|
||||||
|
- '(npm (i|install) (-g|--global)|npm (-g|--global) (i|install))'
|
||||||
13
docs/vale/styles/docs/Numbers.yml
Normal file
13
docs/vale/styles/docs/Numbers.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Numbers must be spelled out"
|
||||||
|
level: error
|
||||||
|
ignorecase: true
|
||||||
|
scope: paragraph
|
||||||
|
tokens:
|
||||||
|
- '.*[0-9]+\s(?!(AM|PM))+' #need to match words before to add exceptions
|
||||||
|
- '.*[0-9][.]'
|
||||||
|
exceptions:
|
||||||
|
- '[pP]ort [0-9]+'
|
||||||
|
- 'WSL2'
|
||||||
|
- '[vV]ersions? [0-9]'
|
||||||
|
- '[v.]+[0-9]+'
|
||||||
12
docs/vale/styles/docs/Ordinal.yml
Normal file
12
docs/vale/styles/docs/Ordinal.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Don't add -ly to an ordinal number."
|
||||||
|
level: suggestion
|
||||||
|
action:
|
||||||
|
name: edit
|
||||||
|
params:
|
||||||
|
- trim
|
||||||
|
- ly
|
||||||
|
tokens:
|
||||||
|
- firstly
|
||||||
|
- secondly
|
||||||
|
- thirdly
|
||||||
6
docs/vale/styles/docs/Our.yml
Normal file
6
docs/vale/styles/docs/Our.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Avoid using our"
|
||||||
|
level: warning
|
||||||
|
ignorecase: true
|
||||||
|
tokens:
|
||||||
|
- ours?
|
||||||
8
docs/vale/styles/docs/OxfordComma.yml
Normal file
8
docs/vale/styles/docs/OxfordComma.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Use the Oxford comma in '%s'."
|
||||||
|
link: https://docs.microsoft.com/en-us/style-guide/punctuation/commas
|
||||||
|
scope: sentence
|
||||||
|
level: suggestion
|
||||||
|
nonword: true
|
||||||
|
tokens:
|
||||||
|
- '(?:[^\s,]+,){1,} \w+ (?:and|or) \w+[.?!]'
|
||||||
183
docs/vale/styles/docs/Passive.yml
Normal file
183
docs/vale/styles/docs/Passive.yml
Normal file
@ -0,0 +1,183 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "'%s' looks like passive voice."
|
||||||
|
ignorecase: true
|
||||||
|
level: warning
|
||||||
|
raw:
|
||||||
|
- \b(am|are|were|being|is|been|was|be)\b\s*
|
||||||
|
tokens:
|
||||||
|
- '[\w]+ed'
|
||||||
|
- awoken
|
||||||
|
- beat
|
||||||
|
- become
|
||||||
|
- been
|
||||||
|
- begun
|
||||||
|
- bent
|
||||||
|
- beset
|
||||||
|
- bet
|
||||||
|
- bid
|
||||||
|
- bidden
|
||||||
|
- bitten
|
||||||
|
- bled
|
||||||
|
- blown
|
||||||
|
- born
|
||||||
|
- bought
|
||||||
|
- bound
|
||||||
|
- bred
|
||||||
|
- broadcast
|
||||||
|
- broken
|
||||||
|
- brought
|
||||||
|
- built
|
||||||
|
- burnt
|
||||||
|
- burst
|
||||||
|
- cast
|
||||||
|
- caught
|
||||||
|
- chosen
|
||||||
|
- clung
|
||||||
|
- come
|
||||||
|
- cost
|
||||||
|
- crept
|
||||||
|
- cut
|
||||||
|
- dealt
|
||||||
|
- dived
|
||||||
|
- done
|
||||||
|
- drawn
|
||||||
|
- dreamt
|
||||||
|
- driven
|
||||||
|
- drunk
|
||||||
|
- dug
|
||||||
|
- eaten
|
||||||
|
- fallen
|
||||||
|
- fed
|
||||||
|
- felt
|
||||||
|
- fit
|
||||||
|
- fled
|
||||||
|
- flown
|
||||||
|
- flung
|
||||||
|
- forbidden
|
||||||
|
- foregone
|
||||||
|
- forgiven
|
||||||
|
- forgotten
|
||||||
|
- forsaken
|
||||||
|
- fought
|
||||||
|
- found
|
||||||
|
- frozen
|
||||||
|
- given
|
||||||
|
- gone
|
||||||
|
- gotten
|
||||||
|
- ground
|
||||||
|
- grown
|
||||||
|
- heard
|
||||||
|
- held
|
||||||
|
- hidden
|
||||||
|
- hit
|
||||||
|
- hung
|
||||||
|
- hurt
|
||||||
|
- kept
|
||||||
|
- knelt
|
||||||
|
- knit
|
||||||
|
- known
|
||||||
|
- laid
|
||||||
|
- lain
|
||||||
|
- leapt
|
||||||
|
- learnt
|
||||||
|
- led
|
||||||
|
- left
|
||||||
|
- lent
|
||||||
|
- let
|
||||||
|
- lighted
|
||||||
|
- lost
|
||||||
|
- made
|
||||||
|
- meant
|
||||||
|
- met
|
||||||
|
- misspelt
|
||||||
|
- mistaken
|
||||||
|
- mown
|
||||||
|
- overcome
|
||||||
|
- overdone
|
||||||
|
- overtaken
|
||||||
|
- overthrown
|
||||||
|
- paid
|
||||||
|
- pled
|
||||||
|
- proven
|
||||||
|
- put
|
||||||
|
- quit
|
||||||
|
- read
|
||||||
|
- rid
|
||||||
|
- ridden
|
||||||
|
- risen
|
||||||
|
- run
|
||||||
|
- rung
|
||||||
|
- said
|
||||||
|
- sat
|
||||||
|
- sawn
|
||||||
|
- seen
|
||||||
|
- sent
|
||||||
|
- set
|
||||||
|
- sewn
|
||||||
|
- shaken
|
||||||
|
- shaven
|
||||||
|
- shed
|
||||||
|
- shod
|
||||||
|
- shone
|
||||||
|
- shorn
|
||||||
|
- shot
|
||||||
|
- shown
|
||||||
|
- shrunk
|
||||||
|
- shut
|
||||||
|
- slain
|
||||||
|
- slept
|
||||||
|
- slid
|
||||||
|
- slit
|
||||||
|
- slung
|
||||||
|
- smitten
|
||||||
|
- sold
|
||||||
|
- sought
|
||||||
|
- sown
|
||||||
|
- sped
|
||||||
|
- spent
|
||||||
|
- spilt
|
||||||
|
- spit
|
||||||
|
- split
|
||||||
|
- spoken
|
||||||
|
- spread
|
||||||
|
- sprung
|
||||||
|
- spun
|
||||||
|
- stolen
|
||||||
|
- stood
|
||||||
|
- stridden
|
||||||
|
- striven
|
||||||
|
- struck
|
||||||
|
- strung
|
||||||
|
- stuck
|
||||||
|
- stung
|
||||||
|
- stunk
|
||||||
|
- sung
|
||||||
|
- sunk
|
||||||
|
- swept
|
||||||
|
- swollen
|
||||||
|
- sworn
|
||||||
|
- swum
|
||||||
|
- swung
|
||||||
|
- taken
|
||||||
|
- taught
|
||||||
|
- thought
|
||||||
|
- thrived
|
||||||
|
- thrown
|
||||||
|
- thrust
|
||||||
|
- told
|
||||||
|
- torn
|
||||||
|
- trodden
|
||||||
|
- understood
|
||||||
|
- upheld
|
||||||
|
- upset
|
||||||
|
- wed
|
||||||
|
- wept
|
||||||
|
- withheld
|
||||||
|
- withstood
|
||||||
|
- woken
|
||||||
|
- won
|
||||||
|
- worn
|
||||||
|
- wound
|
||||||
|
- woven
|
||||||
|
- written
|
||||||
|
- wrung
|
||||||
6
docs/vale/styles/docs/Percentages.yml
Normal file
6
docs/vale/styles/docs/Percentages.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Use a numeral plus the units."
|
||||||
|
nonword: true
|
||||||
|
level: error
|
||||||
|
tokens:
|
||||||
|
- '\b[a-zA-z]+\spercent\b'
|
||||||
6
docs/vale/styles/docs/SentenceLength.yml
Normal file
6
docs/vale/styles/docs/SentenceLength.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
extends: occurrence
|
||||||
|
message: "Try to keep sentences short (< 30 words)."
|
||||||
|
scope: sentence
|
||||||
|
level: suggestion
|
||||||
|
max: 30
|
||||||
|
token: \b(\w+)\b
|
||||||
7
docs/vale/styles/docs/Spacing.yml
Normal file
7
docs/vale/styles/docs/Spacing.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "'%s' should have one space."
|
||||||
|
level: warning
|
||||||
|
nonword: true
|
||||||
|
tokens:
|
||||||
|
- '[a-z][.?!] {2,}[A-Z]'
|
||||||
|
- '[a-z][.?!][A-Z]'
|
||||||
8
docs/vale/styles/docs/Terms.yml
Normal file
8
docs/vale/styles/docs/Terms.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
extends: substitution
|
||||||
|
message: Consider using '%s' instead of '%s'
|
||||||
|
level: warning
|
||||||
|
scope: raw
|
||||||
|
ignorecase: false
|
||||||
|
# swap maps tokens in form of bad: good
|
||||||
|
swap:
|
||||||
|
e-commerce: ecommerce
|
||||||
7
docs/vale/styles/docs/TypeScript.yml
Normal file
7
docs/vale/styles/docs/TypeScript.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Consider using typescript instead of tsx"
|
||||||
|
level: warning
|
||||||
|
scope: raw
|
||||||
|
ignorecase: true
|
||||||
|
raw:
|
||||||
|
- '```tsx'
|
||||||
9
docs/vale/styles/docs/We.yml
Normal file
9
docs/vale/styles/docs/We.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Avoid using first-person plural like '%s'."
|
||||||
|
level: error
|
||||||
|
ignorecase: true
|
||||||
|
tokens:
|
||||||
|
- we
|
||||||
|
- we'(?:ve|re)
|
||||||
|
- us
|
||||||
|
- let's
|
||||||
121
docs/vale/styles/docs/Wordiness.yml
Normal file
121
docs/vale/styles/docs/Wordiness.yml
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
extends: substitution
|
||||||
|
message: "Consider using '%s' instead of '%s'."
|
||||||
|
ignorecase: true
|
||||||
|
level: suggestion
|
||||||
|
action:
|
||||||
|
name: replace
|
||||||
|
swap:
|
||||||
|
(?:give|gave) rise to: lead to
|
||||||
|
(?:previous|prior) to: before
|
||||||
|
a (?:large)? majority of: most
|
||||||
|
a (?:large)? number of: many
|
||||||
|
a myriad of: myriad
|
||||||
|
adversely impact: hurt
|
||||||
|
all across: across
|
||||||
|
all of a sudden: suddenly
|
||||||
|
all of these: these
|
||||||
|
all of: all
|
||||||
|
all-time record: record
|
||||||
|
almost all: most
|
||||||
|
almost never: seldom
|
||||||
|
along the lines of: similar to
|
||||||
|
an adequate number of: enough
|
||||||
|
an appreciable number of: many
|
||||||
|
an estimated: about
|
||||||
|
any and all: all
|
||||||
|
are in agreement: agree
|
||||||
|
as a matter of fact: in fact
|
||||||
|
as a means of: to
|
||||||
|
as a result of: because of
|
||||||
|
as of yet: yet
|
||||||
|
as per: per
|
||||||
|
at a later date: later
|
||||||
|
at all times: always
|
||||||
|
at the present time: now
|
||||||
|
at this point in time: at this point
|
||||||
|
based in large part on: based on
|
||||||
|
based on the fact that: because
|
||||||
|
basic necessity: necessity
|
||||||
|
because of the fact that: because
|
||||||
|
came to a realization: realized
|
||||||
|
came to an abrupt end: ended abruptly
|
||||||
|
carry out an evaluation of: evaluate
|
||||||
|
close down: close
|
||||||
|
closed down: closed
|
||||||
|
complete stranger: stranger
|
||||||
|
completely separate: separate
|
||||||
|
concerning the matter of: regarding
|
||||||
|
conduct a review of: review
|
||||||
|
conduct an investigation: investigate
|
||||||
|
conduct experiments: experiment
|
||||||
|
continue on: continue
|
||||||
|
despite the fact that: although
|
||||||
|
disappear from sight: disappear
|
||||||
|
drag and drop: drag
|
||||||
|
drag-and-drop: drag
|
||||||
|
doomed to fail: doomed
|
||||||
|
due to the fact that: because
|
||||||
|
during the period of: during
|
||||||
|
during the time that: while
|
||||||
|
emergency situation: emergency
|
||||||
|
except when: unless
|
||||||
|
excessive number: too many
|
||||||
|
extend an invitation: invite
|
||||||
|
fall down: fall
|
||||||
|
fell down: fell
|
||||||
|
for the duration of: during
|
||||||
|
gather together: gather
|
||||||
|
has the ability to: can
|
||||||
|
has the capacity to: can
|
||||||
|
has the opportunity to: could
|
||||||
|
hold a meeting: meet
|
||||||
|
if this is not the case: if not
|
||||||
|
in a careful manner: carefully
|
||||||
|
in a thoughtful manner: thoughtfully
|
||||||
|
in a timely manner: timely
|
||||||
|
in an effort to: to
|
||||||
|
in between: between
|
||||||
|
in lieu of: instead of
|
||||||
|
in many cases: often
|
||||||
|
in most cases: usually
|
||||||
|
in order to: to
|
||||||
|
in some cases: sometimes
|
||||||
|
in spite of the fact that: although
|
||||||
|
in spite of: despite
|
||||||
|
in the (?:very)? near future: soon
|
||||||
|
in the event that: if
|
||||||
|
in the neighborhood of: roughly
|
||||||
|
in the vicinity of: close to
|
||||||
|
it would appear that: apparently
|
||||||
|
lift up: lift
|
||||||
|
made reference to: referred to
|
||||||
|
make reference to: refer to
|
||||||
|
mix together: mix
|
||||||
|
none at all: none
|
||||||
|
not in a position to: unable
|
||||||
|
not possible: impossible
|
||||||
|
of major importance: important
|
||||||
|
perform an assessment of: assess
|
||||||
|
pertaining to: about
|
||||||
|
place an order: order
|
||||||
|
plays a key role in: is essential to
|
||||||
|
present time: now
|
||||||
|
readily apparent: apparent
|
||||||
|
some of the: some
|
||||||
|
span across: span
|
||||||
|
subsequent to: after
|
||||||
|
successfully complete: complete
|
||||||
|
sufficient number (?:of)?: enough
|
||||||
|
take action: act
|
||||||
|
take into account: consider
|
||||||
|
the question as to whether: whether
|
||||||
|
there is no doubt but that: doubtless
|
||||||
|
this day and age: this age
|
||||||
|
this is a subject that: this subject
|
||||||
|
time (?:frame|period): time
|
||||||
|
under the provisions of: under
|
||||||
|
until such time as: until
|
||||||
|
used for fuel purposes: used for fuel
|
||||||
|
whether or not: whether
|
||||||
|
with regard to: regarding
|
||||||
|
with the exception of: except for
|
||||||
9
docs/vale/styles/docs/WritingLevel.yml
Normal file
9
docs/vale/styles/docs/WritingLevel.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
extends: metric
|
||||||
|
message: "Try to keep the Flesch-Kincaid grade level (%s) below 8."
|
||||||
|
link: https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests
|
||||||
|
|
||||||
|
formula: |
|
||||||
|
(0.39 * (words / sentences)) + (11.8 * (syllables / words)) - 15.59
|
||||||
|
|
||||||
|
condition: "> 8"
|
||||||
|
level: suggestion
|
||||||
702
docs/vale/styles/write-good/Cliches.yml
Normal file
702
docs/vale/styles/write-good/Cliches.yml
Normal file
@ -0,0 +1,702 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Try to avoid using clichés like '%s'."
|
||||||
|
ignorecase: true
|
||||||
|
level: warning
|
||||||
|
tokens:
|
||||||
|
- a chip off the old block
|
||||||
|
- a clean slate
|
||||||
|
- a dark and stormy night
|
||||||
|
- a far cry
|
||||||
|
- a fine kettle of fish
|
||||||
|
- a loose cannon
|
||||||
|
- a penny saved is a penny earned
|
||||||
|
- a tough row to hoe
|
||||||
|
- a word to the wise
|
||||||
|
- ace in the hole
|
||||||
|
- acid test
|
||||||
|
- add insult to injury
|
||||||
|
- against all odds
|
||||||
|
- air your dirty laundry
|
||||||
|
- all fun and games
|
||||||
|
- all in a day's work
|
||||||
|
- all talk, no action
|
||||||
|
- all thumbs
|
||||||
|
- all your eggs in one basket
|
||||||
|
- all's fair in love and war
|
||||||
|
- all's well that ends well
|
||||||
|
- almighty dollar
|
||||||
|
- American as apple pie
|
||||||
|
- an axe to grind
|
||||||
|
- another day, another dollar
|
||||||
|
- armed to the teeth
|
||||||
|
- as luck would have it
|
||||||
|
- as old as time
|
||||||
|
- as the crow flies
|
||||||
|
- at loose ends
|
||||||
|
- at my wits end
|
||||||
|
- avoid like the plague
|
||||||
|
- babe in the woods
|
||||||
|
- back against the wall
|
||||||
|
- back in the saddle
|
||||||
|
- back to square one
|
||||||
|
- back to the drawing board
|
||||||
|
- bad to the bone
|
||||||
|
- badge of honor
|
||||||
|
- bald faced liar
|
||||||
|
- ballpark figure
|
||||||
|
- banging your head against a brick wall
|
||||||
|
- baptism by fire
|
||||||
|
- barking up the wrong tree
|
||||||
|
- bat out of hell
|
||||||
|
- be all and end all
|
||||||
|
- beat a dead horse
|
||||||
|
- beat around the bush
|
||||||
|
- been there, done that
|
||||||
|
- beggars can't be choosers
|
||||||
|
- behind the eight ball
|
||||||
|
- bend over backwards
|
||||||
|
- benefit of the doubt
|
||||||
|
- bent out of shape
|
||||||
|
- best thing since sliced bread
|
||||||
|
- bet your bottom dollar
|
||||||
|
- better half
|
||||||
|
- better late than never
|
||||||
|
- better mousetrap
|
||||||
|
- better safe than sorry
|
||||||
|
- between a rock and a hard place
|
||||||
|
- beyond the pale
|
||||||
|
- bide your time
|
||||||
|
- big as life
|
||||||
|
- big cheese
|
||||||
|
- big fish in a small pond
|
||||||
|
- big man on campus
|
||||||
|
- bigger they are the harder they fall
|
||||||
|
- bird in the hand
|
||||||
|
- bird's eye view
|
||||||
|
- birds and the bees
|
||||||
|
- birds of a feather flock together
|
||||||
|
- bit the hand that feeds you
|
||||||
|
- bite the bullet
|
||||||
|
- bite the dust
|
||||||
|
- bitten off more than he can chew
|
||||||
|
- black as coal
|
||||||
|
- black as pitch
|
||||||
|
- black as the ace of spades
|
||||||
|
- blast from the past
|
||||||
|
- bleeding heart
|
||||||
|
- blessing in disguise
|
||||||
|
- blind ambition
|
||||||
|
- blind as a bat
|
||||||
|
- blind leading the blind
|
||||||
|
- blood is thicker than water
|
||||||
|
- blood sweat and tears
|
||||||
|
- blow off steam
|
||||||
|
- blow your own horn
|
||||||
|
- blushing bride
|
||||||
|
- boils down to
|
||||||
|
- bolt from the blue
|
||||||
|
- bone to pick
|
||||||
|
- bored stiff
|
||||||
|
- bored to tears
|
||||||
|
- bottomless pit
|
||||||
|
- boys will be boys
|
||||||
|
- bright and early
|
||||||
|
- brings home the bacon
|
||||||
|
- broad across the beam
|
||||||
|
- broken record
|
||||||
|
- brought back to reality
|
||||||
|
- bull by the horns
|
||||||
|
- bull in a china shop
|
||||||
|
- burn the midnight oil
|
||||||
|
- burning question
|
||||||
|
- burning the candle at both ends
|
||||||
|
- burst your bubble
|
||||||
|
- bury the hatchet
|
||||||
|
- busy as a bee
|
||||||
|
- by hook or by crook
|
||||||
|
- call a spade a spade
|
||||||
|
- called onto the carpet
|
||||||
|
- calm before the storm
|
||||||
|
- can of worms
|
||||||
|
- can't cut the mustard
|
||||||
|
- can't hold a candle to
|
||||||
|
- case of mistaken identity
|
||||||
|
- cat got your tongue
|
||||||
|
- cat's meow
|
||||||
|
- caught in the crossfire
|
||||||
|
- caught red-handed
|
||||||
|
- checkered past
|
||||||
|
- chomping at the bit
|
||||||
|
- cleanliness is next to godliness
|
||||||
|
- clear as a bell
|
||||||
|
- clear as mud
|
||||||
|
- close to the vest
|
||||||
|
- cock and bull story
|
||||||
|
- cold shoulder
|
||||||
|
- come hell or high water
|
||||||
|
- cool as a cucumber
|
||||||
|
- cool, calm, and collected
|
||||||
|
- cost a king's ransom
|
||||||
|
- count your blessings
|
||||||
|
- crack of dawn
|
||||||
|
- crash course
|
||||||
|
- creature comforts
|
||||||
|
- cross that bridge when you come to it
|
||||||
|
- crushing blow
|
||||||
|
- cry like a baby
|
||||||
|
- cry me a river
|
||||||
|
- cry over spilt milk
|
||||||
|
- crystal clear
|
||||||
|
- curiosity killed the cat
|
||||||
|
- cut and dried
|
||||||
|
- cut through the red tape
|
||||||
|
- cut to the chase
|
||||||
|
- cute as a bugs ear
|
||||||
|
- cute as a button
|
||||||
|
- cute as a puppy
|
||||||
|
- cuts to the quick
|
||||||
|
- dark before the dawn
|
||||||
|
- day in, day out
|
||||||
|
- dead as a doornail
|
||||||
|
- devil is in the details
|
||||||
|
- dime a dozen
|
||||||
|
- divide and conquer
|
||||||
|
- dog and pony show
|
||||||
|
- dog days
|
||||||
|
- dog eat dog
|
||||||
|
- dog tired
|
||||||
|
- don't burn your bridges
|
||||||
|
- don't count your chickens
|
||||||
|
- don't look a gift horse in the mouth
|
||||||
|
- don't rock the boat
|
||||||
|
- don't step on anyone's toes
|
||||||
|
- don't take any wooden nickels
|
||||||
|
- down and out
|
||||||
|
- down at the heels
|
||||||
|
- down in the dumps
|
||||||
|
- down the hatch
|
||||||
|
- down to earth
|
||||||
|
- draw the line
|
||||||
|
- dressed to kill
|
||||||
|
- dressed to the nines
|
||||||
|
- drives me up the wall
|
||||||
|
- dull as dishwater
|
||||||
|
- dyed in the wool
|
||||||
|
- eagle eye
|
||||||
|
- ear to the ground
|
||||||
|
- early bird catches the worm
|
||||||
|
- easier said than done
|
||||||
|
- easy as pie
|
||||||
|
- eat your heart out
|
||||||
|
- eat your words
|
||||||
|
- eleventh hour
|
||||||
|
- even the playing field
|
||||||
|
- every dog has its day
|
||||||
|
- every fiber of my being
|
||||||
|
- everything but the kitchen sink
|
||||||
|
- eye for an eye
|
||||||
|
- face the music
|
||||||
|
- facts of life
|
||||||
|
- fair weather friend
|
||||||
|
- fall by the wayside
|
||||||
|
- fan the flames
|
||||||
|
- feast or famine
|
||||||
|
- feather your nest
|
||||||
|
- feathered friends
|
||||||
|
- few and far between
|
||||||
|
- fifteen minutes of fame
|
||||||
|
- filthy vermin
|
||||||
|
- fine kettle of fish
|
||||||
|
- fish out of water
|
||||||
|
- fishing for a compliment
|
||||||
|
- fit as a fiddle
|
||||||
|
- fit the bill
|
||||||
|
- fit to be tied
|
||||||
|
- flash in the pan
|
||||||
|
- flat as a pancake
|
||||||
|
- flip your lid
|
||||||
|
- flog a dead horse
|
||||||
|
- fly by night
|
||||||
|
- fly the coop
|
||||||
|
- follow your heart
|
||||||
|
- for all intents and purposes
|
||||||
|
- for the birds
|
||||||
|
- for what it's worth
|
||||||
|
- force of nature
|
||||||
|
- force to be reckoned with
|
||||||
|
- forgive and forget
|
||||||
|
- fox in the henhouse
|
||||||
|
- free and easy
|
||||||
|
- free as a bird
|
||||||
|
- fresh as a daisy
|
||||||
|
- full steam ahead
|
||||||
|
- fun in the sun
|
||||||
|
- garbage in, garbage out
|
||||||
|
- gentle as a lamb
|
||||||
|
- get a kick out of
|
||||||
|
- get a leg up
|
||||||
|
- get down and dirty
|
||||||
|
- get the lead out
|
||||||
|
- get to the bottom of
|
||||||
|
- get your feet wet
|
||||||
|
- gets my goat
|
||||||
|
- gilding the lily
|
||||||
|
- give and take
|
||||||
|
- go against the grain
|
||||||
|
- go at it tooth and nail
|
||||||
|
- go for broke
|
||||||
|
- go him one better
|
||||||
|
- go the extra mile
|
||||||
|
- go with the flow
|
||||||
|
- goes without saying
|
||||||
|
- good as gold
|
||||||
|
- good deed for the day
|
||||||
|
- good things come to those who wait
|
||||||
|
- good time was had by all
|
||||||
|
- good times were had by all
|
||||||
|
- greased lightning
|
||||||
|
- greek to me
|
||||||
|
- green thumb
|
||||||
|
- green-eyed monster
|
||||||
|
- grist for the mill
|
||||||
|
- growing like a weed
|
||||||
|
- hair of the dog
|
||||||
|
- hand to mouth
|
||||||
|
- happy as a clam
|
||||||
|
- happy as a lark
|
||||||
|
- hasn't a clue
|
||||||
|
- have a nice day
|
||||||
|
- have high hopes
|
||||||
|
- have the last laugh
|
||||||
|
- haven't got a row to hoe
|
||||||
|
- head honcho
|
||||||
|
- head over heels
|
||||||
|
- hear a pin drop
|
||||||
|
- heard it through the grapevine
|
||||||
|
- heart's content
|
||||||
|
- heavy as lead
|
||||||
|
- hem and haw
|
||||||
|
- high and dry
|
||||||
|
- high and mighty
|
||||||
|
- high as a kite
|
||||||
|
- hit paydirt
|
||||||
|
- hold your head up high
|
||||||
|
- hold your horses
|
||||||
|
- hold your own
|
||||||
|
- hold your tongue
|
||||||
|
- honest as the day is long
|
||||||
|
- horns of a dilemma
|
||||||
|
- horse of a different color
|
||||||
|
- hot under the collar
|
||||||
|
- hour of need
|
||||||
|
- I beg to differ
|
||||||
|
- icing on the cake
|
||||||
|
- if the shoe fits
|
||||||
|
- if the shoe were on the other foot
|
||||||
|
- in a jam
|
||||||
|
- in a jiffy
|
||||||
|
- in a nutshell
|
||||||
|
- in a pig's eye
|
||||||
|
- in a pinch
|
||||||
|
- in a word
|
||||||
|
- in hot water
|
||||||
|
- in the gutter
|
||||||
|
- in the nick of time
|
||||||
|
- in the thick of it
|
||||||
|
- in your dreams
|
||||||
|
- it ain't over till the fat lady sings
|
||||||
|
- it goes without saying
|
||||||
|
- it takes all kinds
|
||||||
|
- it takes one to know one
|
||||||
|
- it's a small world
|
||||||
|
- it's only a matter of time
|
||||||
|
- ivory tower
|
||||||
|
- Jack of all trades
|
||||||
|
- jockey for position
|
||||||
|
- jog your memory
|
||||||
|
- joined at the hip
|
||||||
|
- judge a book by its cover
|
||||||
|
- jump down your throat
|
||||||
|
- jump in with both feet
|
||||||
|
- jump on the bandwagon
|
||||||
|
- jump the gun
|
||||||
|
- jump to conclusions
|
||||||
|
- just a hop, skip, and a jump
|
||||||
|
- just the ticket
|
||||||
|
- justice is blind
|
||||||
|
- keep a stiff upper lip
|
||||||
|
- keep an eye on
|
||||||
|
- keep it simple, stupid
|
||||||
|
- keep the home fires burning
|
||||||
|
- keep up with the Joneses
|
||||||
|
- keep your chin up
|
||||||
|
- keep your fingers crossed
|
||||||
|
- kick the bucket
|
||||||
|
- kick up your heels
|
||||||
|
- kick your feet up
|
||||||
|
- kid in a candy store
|
||||||
|
- kill two birds with one stone
|
||||||
|
- kiss of death
|
||||||
|
- knock it out of the park
|
||||||
|
- knock on wood
|
||||||
|
- knock your socks off
|
||||||
|
- know him from Adam
|
||||||
|
- know the ropes
|
||||||
|
- know the score
|
||||||
|
- knuckle down
|
||||||
|
- knuckle sandwich
|
||||||
|
- knuckle under
|
||||||
|
- labor of love
|
||||||
|
- ladder of success
|
||||||
|
- land on your feet
|
||||||
|
- lap of luxury
|
||||||
|
- last but not least
|
||||||
|
- last hurrah
|
||||||
|
- last-ditch effort
|
||||||
|
- law of the jungle
|
||||||
|
- law of the land
|
||||||
|
- lay down the law
|
||||||
|
- leaps and bounds
|
||||||
|
- let sleeping dogs lie
|
||||||
|
- let the cat out of the bag
|
||||||
|
- let the good times roll
|
||||||
|
- let your hair down
|
||||||
|
- let's talk turkey
|
||||||
|
- letter perfect
|
||||||
|
- lick your wounds
|
||||||
|
- lies like a rug
|
||||||
|
- life's a bitch
|
||||||
|
- life's a grind
|
||||||
|
- light at the end of the tunnel
|
||||||
|
- lighter than a feather
|
||||||
|
- lighter than air
|
||||||
|
- like clockwork
|
||||||
|
- like father like son
|
||||||
|
- like taking candy from a baby
|
||||||
|
- like there's no tomorrow
|
||||||
|
- lion's share
|
||||||
|
- live and learn
|
||||||
|
- live and let live
|
||||||
|
- long and short of it
|
||||||
|
- long lost love
|
||||||
|
- look before you leap
|
||||||
|
- look down your nose
|
||||||
|
- look what the cat dragged in
|
||||||
|
- looking a gift horse in the mouth
|
||||||
|
- looks like death warmed over
|
||||||
|
- loose cannon
|
||||||
|
- lose your head
|
||||||
|
- lose your temper
|
||||||
|
- loud as a horn
|
||||||
|
- lounge lizard
|
||||||
|
- loved and lost
|
||||||
|
- low man on the totem pole
|
||||||
|
- luck of the draw
|
||||||
|
- luck of the Irish
|
||||||
|
- make hay while the sun shines
|
||||||
|
- make money hand over fist
|
||||||
|
- make my day
|
||||||
|
- make the best of a bad situation
|
||||||
|
- make the best of it
|
||||||
|
- make your blood boil
|
||||||
|
- man of few words
|
||||||
|
- man's best friend
|
||||||
|
- mark my words
|
||||||
|
- meaningful dialogue
|
||||||
|
- missed the boat on that one
|
||||||
|
- moment in the sun
|
||||||
|
- moment of glory
|
||||||
|
- moment of truth
|
||||||
|
- money to burn
|
||||||
|
- more power to you
|
||||||
|
- more than one way to skin a cat
|
||||||
|
- movers and shakers
|
||||||
|
- moving experience
|
||||||
|
- naked as a jaybird
|
||||||
|
- naked truth
|
||||||
|
- neat as a pin
|
||||||
|
- needle in a haystack
|
||||||
|
- needless to say
|
||||||
|
- neither here nor there
|
||||||
|
- never look back
|
||||||
|
- never say never
|
||||||
|
- nip and tuck
|
||||||
|
- nip it in the bud
|
||||||
|
- no guts, no glory
|
||||||
|
- no love lost
|
||||||
|
- no pain, no gain
|
||||||
|
- no skin off my back
|
||||||
|
- no stone unturned
|
||||||
|
- no time like the present
|
||||||
|
- no use crying over spilled milk
|
||||||
|
- nose to the grindstone
|
||||||
|
- not a hope in hell
|
||||||
|
- not a minute's peace
|
||||||
|
- not in my backyard
|
||||||
|
- not playing with a full deck
|
||||||
|
- not the end of the world
|
||||||
|
- not written in stone
|
||||||
|
- nothing to sneeze at
|
||||||
|
- nothing ventured nothing gained
|
||||||
|
- now we're cooking
|
||||||
|
- off the top of my head
|
||||||
|
- off the wagon
|
||||||
|
- off the wall
|
||||||
|
- old hat
|
||||||
|
- older and wiser
|
||||||
|
- older than dirt
|
||||||
|
- older than Methuselah
|
||||||
|
- on a roll
|
||||||
|
- on cloud nine
|
||||||
|
- on pins and needles
|
||||||
|
- on the bandwagon
|
||||||
|
- on the money
|
||||||
|
- on the nose
|
||||||
|
- on the rocks
|
||||||
|
- on the spot
|
||||||
|
- on the tip of my tongue
|
||||||
|
- on the wagon
|
||||||
|
- on thin ice
|
||||||
|
- once bitten, twice shy
|
||||||
|
- one bad apple doesn't spoil the bushel
|
||||||
|
- one born every minute
|
||||||
|
- one brick short
|
||||||
|
- one foot in the grave
|
||||||
|
- one in a million
|
||||||
|
- one red cent
|
||||||
|
- only game in town
|
||||||
|
- open a can of worms
|
||||||
|
- open and shut case
|
||||||
|
- open the flood gates
|
||||||
|
- opportunity doesn't knock twice
|
||||||
|
- out of pocket
|
||||||
|
- out of sight, out of mind
|
||||||
|
- out of the frying pan into the fire
|
||||||
|
- out of the woods
|
||||||
|
- out on a limb
|
||||||
|
- over a barrel
|
||||||
|
- over the hump
|
||||||
|
- pain and suffering
|
||||||
|
- pain in the
|
||||||
|
- panic button
|
||||||
|
- par for the course
|
||||||
|
- part and parcel
|
||||||
|
- party pooper
|
||||||
|
- pass the buck
|
||||||
|
- patience is a virtue
|
||||||
|
- pay through the nose
|
||||||
|
- penny pincher
|
||||||
|
- perfect storm
|
||||||
|
- pig in a poke
|
||||||
|
- pile it on
|
||||||
|
- pillar of the community
|
||||||
|
- pin your hopes on
|
||||||
|
- pitter patter of little feet
|
||||||
|
- plain as day
|
||||||
|
- plain as the nose on your face
|
||||||
|
- play by the rules
|
||||||
|
- play your cards right
|
||||||
|
- playing the field
|
||||||
|
- playing with fire
|
||||||
|
- pleased as punch
|
||||||
|
- plenty of fish in the sea
|
||||||
|
- point with pride
|
||||||
|
- poor as a church mouse
|
||||||
|
- pot calling the kettle black
|
||||||
|
- pretty as a picture
|
||||||
|
- pull a fast one
|
||||||
|
- pull your punches
|
||||||
|
- pulling your leg
|
||||||
|
- pure as the driven snow
|
||||||
|
- put it in a nutshell
|
||||||
|
- put one over on you
|
||||||
|
- put the cart before the horse
|
||||||
|
- put the pedal to the metal
|
||||||
|
- put your best foot forward
|
||||||
|
- put your foot down
|
||||||
|
- quick as a bunny
|
||||||
|
- quick as a lick
|
||||||
|
- quick as a wink
|
||||||
|
- quick as lightning
|
||||||
|
- quiet as a dormouse
|
||||||
|
- rags to riches
|
||||||
|
- raining buckets
|
||||||
|
- raining cats and dogs
|
||||||
|
- rank and file
|
||||||
|
- rat race
|
||||||
|
- reap what you sow
|
||||||
|
- red as a beet
|
||||||
|
- red herring
|
||||||
|
- reinvent the wheel
|
||||||
|
- rich and famous
|
||||||
|
- rings a bell
|
||||||
|
- ripe old age
|
||||||
|
- ripped me off
|
||||||
|
- rise and shine
|
||||||
|
- road to hell is paved with good intentions
|
||||||
|
- rob Peter to pay Paul
|
||||||
|
- roll over in the grave
|
||||||
|
- rub the wrong way
|
||||||
|
- ruled the roost
|
||||||
|
- running in circles
|
||||||
|
- sad but true
|
||||||
|
- sadder but wiser
|
||||||
|
- salt of the earth
|
||||||
|
- scared stiff
|
||||||
|
- scared to death
|
||||||
|
- sealed with a kiss
|
||||||
|
- second to none
|
||||||
|
- see eye to eye
|
||||||
|
- seen the light
|
||||||
|
- seize the day
|
||||||
|
- set the record straight
|
||||||
|
- set the world on fire
|
||||||
|
- set your teeth on edge
|
||||||
|
- sharp as a tack
|
||||||
|
- shoot for the moon
|
||||||
|
- shoot the breeze
|
||||||
|
- shot in the dark
|
||||||
|
- shoulder to the wheel
|
||||||
|
- sick as a dog
|
||||||
|
- sigh of relief
|
||||||
|
- signed, sealed, and delivered
|
||||||
|
- sink or swim
|
||||||
|
- six of one, half a dozen of another
|
||||||
|
- skating on thin ice
|
||||||
|
- slept like a log
|
||||||
|
- slinging mud
|
||||||
|
- slippery as an eel
|
||||||
|
- slow as molasses
|
||||||
|
- smart as a whip
|
||||||
|
- smooth as a baby's bottom
|
||||||
|
- sneaking suspicion
|
||||||
|
- snug as a bug in a rug
|
||||||
|
- sow wild oats
|
||||||
|
- spare the rod, spoil the child
|
||||||
|
- speak of the devil
|
||||||
|
- spilled the beans
|
||||||
|
- spinning your wheels
|
||||||
|
- spitting image of
|
||||||
|
- spoke with relish
|
||||||
|
- spread like wildfire
|
||||||
|
- spring to life
|
||||||
|
- squeaky wheel gets the grease
|
||||||
|
- stands out like a sore thumb
|
||||||
|
- start from scratch
|
||||||
|
- stick in the mud
|
||||||
|
- still waters run deep
|
||||||
|
- stitch in time
|
||||||
|
- stop and smell the roses
|
||||||
|
- straight as an arrow
|
||||||
|
- straw that broke the camel's back
|
||||||
|
- strong as an ox
|
||||||
|
- stubborn as a mule
|
||||||
|
- stuff that dreams are made of
|
||||||
|
- stuffed shirt
|
||||||
|
- sweating blood
|
||||||
|
- sweating bullets
|
||||||
|
- take a load off
|
||||||
|
- take one for the team
|
||||||
|
- take the bait
|
||||||
|
- take the bull by the horns
|
||||||
|
- take the plunge
|
||||||
|
- takes one to know one
|
||||||
|
- takes two to tango
|
||||||
|
- the more the merrier
|
||||||
|
- the real deal
|
||||||
|
- the real McCoy
|
||||||
|
- the red carpet treatment
|
||||||
|
- the same old story
|
||||||
|
- there is no accounting for taste
|
||||||
|
- thick as a brick
|
||||||
|
- thick as thieves
|
||||||
|
- thin as a rail
|
||||||
|
- think outside of the box
|
||||||
|
- third time's the charm
|
||||||
|
- this day and age
|
||||||
|
- this hurts me worse than it hurts you
|
||||||
|
- this point in time
|
||||||
|
- three sheets to the wind
|
||||||
|
- through thick and thin
|
||||||
|
- throw in the towel
|
||||||
|
- tie one on
|
||||||
|
- tighter than a drum
|
||||||
|
- time and time again
|
||||||
|
- time is of the essence
|
||||||
|
- tip of the iceberg
|
||||||
|
- tired but happy
|
||||||
|
- to coin a phrase
|
||||||
|
- to each his own
|
||||||
|
- to make a long story short
|
||||||
|
- to the best of my knowledge
|
||||||
|
- toe the line
|
||||||
|
- tongue in cheek
|
||||||
|
- too good to be true
|
||||||
|
- too hot to handle
|
||||||
|
- too numerous to mention
|
||||||
|
- touch with a ten foot pole
|
||||||
|
- tough as nails
|
||||||
|
- trial and error
|
||||||
|
- trials and tribulations
|
||||||
|
- tried and true
|
||||||
|
- trip down memory lane
|
||||||
|
- twist of fate
|
||||||
|
- two cents worth
|
||||||
|
- two peas in a pod
|
||||||
|
- ugly as sin
|
||||||
|
- under the counter
|
||||||
|
- under the gun
|
||||||
|
- under the same roof
|
||||||
|
- under the weather
|
||||||
|
- until the cows come home
|
||||||
|
- unvarnished truth
|
||||||
|
- up the creek
|
||||||
|
- uphill battle
|
||||||
|
- upper crust
|
||||||
|
- upset the applecart
|
||||||
|
- vain attempt
|
||||||
|
- vain effort
|
||||||
|
- vanquish the enemy
|
||||||
|
- vested interest
|
||||||
|
- waiting for the other shoe to drop
|
||||||
|
- wakeup call
|
||||||
|
- warm welcome
|
||||||
|
- watch your p's and q's
|
||||||
|
- watch your tongue
|
||||||
|
- watching the clock
|
||||||
|
- water under the bridge
|
||||||
|
- weather the storm
|
||||||
|
- weed them out
|
||||||
|
- week of Sundays
|
||||||
|
- went belly up
|
||||||
|
- wet behind the ears
|
||||||
|
- what goes around comes around
|
||||||
|
- what you see is what you get
|
||||||
|
- when it rains, it pours
|
||||||
|
- when push comes to shove
|
||||||
|
- when the cat's away
|
||||||
|
- when the going gets tough, the tough get going
|
||||||
|
- white as a sheet
|
||||||
|
- whole ball of wax
|
||||||
|
- whole hog
|
||||||
|
- whole nine yards
|
||||||
|
- wild goose chase
|
||||||
|
- will wonders never cease?
|
||||||
|
- wisdom of the ages
|
||||||
|
- wise as an owl
|
||||||
|
- wolf at the door
|
||||||
|
- words fail me
|
||||||
|
- work like a dog
|
||||||
|
- world weary
|
||||||
|
- worst nightmare
|
||||||
|
- worth its weight in gold
|
||||||
|
- wrong side of the bed
|
||||||
|
- yanking your chain
|
||||||
|
- yappy as a dog
|
||||||
|
- years young
|
||||||
|
- you are what you eat
|
||||||
|
- you can run but you can't hide
|
||||||
|
- you only live once
|
||||||
|
- you're the boss
|
||||||
|
- young and foolish
|
||||||
|
- young and vibrant
|
||||||
32
docs/vale/styles/write-good/E-Prime.yml
Normal file
32
docs/vale/styles/write-good/E-Prime.yml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Try to avoid using '%s'."
|
||||||
|
ignorecase: true
|
||||||
|
level: suggestion
|
||||||
|
tokens:
|
||||||
|
- am
|
||||||
|
- are
|
||||||
|
- aren't
|
||||||
|
- be
|
||||||
|
- been
|
||||||
|
- being
|
||||||
|
- he's
|
||||||
|
- here's
|
||||||
|
- here's
|
||||||
|
- how's
|
||||||
|
- i'm
|
||||||
|
- is
|
||||||
|
- isn't
|
||||||
|
- it's
|
||||||
|
- she's
|
||||||
|
- that's
|
||||||
|
- there's
|
||||||
|
- they're
|
||||||
|
- was
|
||||||
|
- wasn't
|
||||||
|
- we're
|
||||||
|
- were
|
||||||
|
- weren't
|
||||||
|
- what's
|
||||||
|
- where's
|
||||||
|
- who's
|
||||||
|
- you're
|
||||||
11
docs/vale/styles/write-good/Illusions.yml
Normal file
11
docs/vale/styles/write-good/Illusions.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
extends: repetition
|
||||||
|
message: "'%s' is repeated!"
|
||||||
|
level: warning
|
||||||
|
alpha: true
|
||||||
|
action:
|
||||||
|
name: edit
|
||||||
|
params:
|
||||||
|
- truncate
|
||||||
|
- " "
|
||||||
|
tokens:
|
||||||
|
- '[^\s]+'
|
||||||
183
docs/vale/styles/write-good/Passive.yml
Normal file
183
docs/vale/styles/write-good/Passive.yml
Normal file
@ -0,0 +1,183 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "'%s' may be passive voice. Use active voice if you can."
|
||||||
|
ignorecase: true
|
||||||
|
level: warning
|
||||||
|
raw:
|
||||||
|
- \b(am|are|were|being|is|been|was|be)\b\s*
|
||||||
|
tokens:
|
||||||
|
- '[\w]+ed'
|
||||||
|
- awoken
|
||||||
|
- beat
|
||||||
|
- become
|
||||||
|
- been
|
||||||
|
- begun
|
||||||
|
- bent
|
||||||
|
- beset
|
||||||
|
- bet
|
||||||
|
- bid
|
||||||
|
- bidden
|
||||||
|
- bitten
|
||||||
|
- bled
|
||||||
|
- blown
|
||||||
|
- born
|
||||||
|
- bought
|
||||||
|
- bound
|
||||||
|
- bred
|
||||||
|
- broadcast
|
||||||
|
- broken
|
||||||
|
- brought
|
||||||
|
- built
|
||||||
|
- burnt
|
||||||
|
- burst
|
||||||
|
- cast
|
||||||
|
- caught
|
||||||
|
- chosen
|
||||||
|
- clung
|
||||||
|
- come
|
||||||
|
- cost
|
||||||
|
- crept
|
||||||
|
- cut
|
||||||
|
- dealt
|
||||||
|
- dived
|
||||||
|
- done
|
||||||
|
- drawn
|
||||||
|
- dreamt
|
||||||
|
- driven
|
||||||
|
- drunk
|
||||||
|
- dug
|
||||||
|
- eaten
|
||||||
|
- fallen
|
||||||
|
- fed
|
||||||
|
- felt
|
||||||
|
- fit
|
||||||
|
- fled
|
||||||
|
- flown
|
||||||
|
- flung
|
||||||
|
- forbidden
|
||||||
|
- foregone
|
||||||
|
- forgiven
|
||||||
|
- forgotten
|
||||||
|
- forsaken
|
||||||
|
- fought
|
||||||
|
- found
|
||||||
|
- frozen
|
||||||
|
- given
|
||||||
|
- gone
|
||||||
|
- gotten
|
||||||
|
- ground
|
||||||
|
- grown
|
||||||
|
- heard
|
||||||
|
- held
|
||||||
|
- hidden
|
||||||
|
- hit
|
||||||
|
- hung
|
||||||
|
- hurt
|
||||||
|
- kept
|
||||||
|
- knelt
|
||||||
|
- knit
|
||||||
|
- known
|
||||||
|
- laid
|
||||||
|
- lain
|
||||||
|
- leapt
|
||||||
|
- learnt
|
||||||
|
- led
|
||||||
|
- left
|
||||||
|
- lent
|
||||||
|
- let
|
||||||
|
- lighted
|
||||||
|
- lost
|
||||||
|
- made
|
||||||
|
- meant
|
||||||
|
- met
|
||||||
|
- misspelt
|
||||||
|
- mistaken
|
||||||
|
- mown
|
||||||
|
- overcome
|
||||||
|
- overdone
|
||||||
|
- overtaken
|
||||||
|
- overthrown
|
||||||
|
- paid
|
||||||
|
- pled
|
||||||
|
- proven
|
||||||
|
- put
|
||||||
|
- quit
|
||||||
|
- read
|
||||||
|
- rid
|
||||||
|
- ridden
|
||||||
|
- risen
|
||||||
|
- run
|
||||||
|
- rung
|
||||||
|
- said
|
||||||
|
- sat
|
||||||
|
- sawn
|
||||||
|
- seen
|
||||||
|
- sent
|
||||||
|
- set
|
||||||
|
- sewn
|
||||||
|
- shaken
|
||||||
|
- shaven
|
||||||
|
- shed
|
||||||
|
- shod
|
||||||
|
- shone
|
||||||
|
- shorn
|
||||||
|
- shot
|
||||||
|
- shown
|
||||||
|
- shrunk
|
||||||
|
- shut
|
||||||
|
- slain
|
||||||
|
- slept
|
||||||
|
- slid
|
||||||
|
- slit
|
||||||
|
- slung
|
||||||
|
- smitten
|
||||||
|
- sold
|
||||||
|
- sought
|
||||||
|
- sown
|
||||||
|
- sped
|
||||||
|
- spent
|
||||||
|
- spilt
|
||||||
|
- spit
|
||||||
|
- split
|
||||||
|
- spoken
|
||||||
|
- spread
|
||||||
|
- sprung
|
||||||
|
- spun
|
||||||
|
- stolen
|
||||||
|
- stood
|
||||||
|
- stridden
|
||||||
|
- striven
|
||||||
|
- struck
|
||||||
|
- strung
|
||||||
|
- stuck
|
||||||
|
- stung
|
||||||
|
- stunk
|
||||||
|
- sung
|
||||||
|
- sunk
|
||||||
|
- swept
|
||||||
|
- swollen
|
||||||
|
- sworn
|
||||||
|
- swum
|
||||||
|
- swung
|
||||||
|
- taken
|
||||||
|
- taught
|
||||||
|
- thought
|
||||||
|
- thrived
|
||||||
|
- thrown
|
||||||
|
- thrust
|
||||||
|
- told
|
||||||
|
- torn
|
||||||
|
- trodden
|
||||||
|
- understood
|
||||||
|
- upheld
|
||||||
|
- upset
|
||||||
|
- wed
|
||||||
|
- wept
|
||||||
|
- withheld
|
||||||
|
- withstood
|
||||||
|
- woken
|
||||||
|
- won
|
||||||
|
- worn
|
||||||
|
- wound
|
||||||
|
- woven
|
||||||
|
- written
|
||||||
|
- wrung
|
||||||
27
docs/vale/styles/write-good/README.md
Normal file
27
docs/vale/styles/write-good/README.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
Based on [write-good](https://github.com/btford/write-good).
|
||||||
|
|
||||||
|
> Naive linter for English prose for developers who can't write good and wanna learn to do other stuff good too.
|
||||||
|
|
||||||
|
```
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014 Brian Ford
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
```
|
||||||
5
docs/vale/styles/write-good/So.yml
Normal file
5
docs/vale/styles/write-good/So.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Don't start a sentence with '%s'."
|
||||||
|
level: error
|
||||||
|
raw:
|
||||||
|
- '(?:[;-]\s)so[\s,]|\bSo[\s,]'
|
||||||
6
docs/vale/styles/write-good/ThereIs.yml
Normal file
6
docs/vale/styles/write-good/ThereIs.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "Don't start a sentence with '%s'."
|
||||||
|
ignorecase: false
|
||||||
|
level: error
|
||||||
|
raw:
|
||||||
|
- '(?:[;-]\s)There\s(is|are)|\bThere\s(is|are)\b'
|
||||||
221
docs/vale/styles/write-good/TooWordy.yml
Normal file
221
docs/vale/styles/write-good/TooWordy.yml
Normal file
@ -0,0 +1,221 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "'%s' is too wordy."
|
||||||
|
ignorecase: true
|
||||||
|
level: warning
|
||||||
|
tokens:
|
||||||
|
- a number of
|
||||||
|
- abundance
|
||||||
|
- accede to
|
||||||
|
- accelerate
|
||||||
|
- accentuate
|
||||||
|
- accompany
|
||||||
|
- accomplish
|
||||||
|
- accorded
|
||||||
|
- accrue
|
||||||
|
- acquiesce
|
||||||
|
- acquire
|
||||||
|
- additional
|
||||||
|
- adjacent to
|
||||||
|
- adjustment
|
||||||
|
- admissible
|
||||||
|
- advantageous
|
||||||
|
- adversely impact
|
||||||
|
- advise
|
||||||
|
- aforementioned
|
||||||
|
- aggregate
|
||||||
|
- aircraft
|
||||||
|
- all of
|
||||||
|
- all things considered
|
||||||
|
- alleviate
|
||||||
|
- allocate
|
||||||
|
- along the lines of
|
||||||
|
- already existing
|
||||||
|
- alternatively
|
||||||
|
- amazing
|
||||||
|
- ameliorate
|
||||||
|
- anticipate
|
||||||
|
- apparent
|
||||||
|
- appreciable
|
||||||
|
- as a matter of fact
|
||||||
|
- as a means of
|
||||||
|
- as far as I'm concerned
|
||||||
|
- as of yet
|
||||||
|
- as to
|
||||||
|
- as yet
|
||||||
|
- ascertain
|
||||||
|
- assistance
|
||||||
|
- at the present time
|
||||||
|
- at this time
|
||||||
|
- attain
|
||||||
|
- attributable to
|
||||||
|
- authorize
|
||||||
|
- because of the fact that
|
||||||
|
- belated
|
||||||
|
- benefit from
|
||||||
|
- bestow
|
||||||
|
- by means of
|
||||||
|
- by virtue of
|
||||||
|
- by virtue of the fact that
|
||||||
|
- cease
|
||||||
|
- close proximity
|
||||||
|
- commence
|
||||||
|
- comply with
|
||||||
|
- concerning
|
||||||
|
- consequently
|
||||||
|
- consolidate
|
||||||
|
- constitutes
|
||||||
|
- demonstrate
|
||||||
|
- depart
|
||||||
|
- designate
|
||||||
|
- discontinue
|
||||||
|
- due to the fact that
|
||||||
|
- each and every
|
||||||
|
- economical
|
||||||
|
- eliminate
|
||||||
|
- elucidate
|
||||||
|
- employ
|
||||||
|
- endeavor
|
||||||
|
- enumerate
|
||||||
|
- equitable
|
||||||
|
- equivalent
|
||||||
|
- evaluate
|
||||||
|
- evidenced
|
||||||
|
- exclusively
|
||||||
|
- expedite
|
||||||
|
- expend
|
||||||
|
- expiration
|
||||||
|
- facilitate
|
||||||
|
- factual evidence
|
||||||
|
- feasible
|
||||||
|
- finalize
|
||||||
|
- first and foremost
|
||||||
|
- for all intents and purposes
|
||||||
|
- for the most part
|
||||||
|
- for the purpose of
|
||||||
|
- forfeit
|
||||||
|
- formulate
|
||||||
|
- have a tendency to
|
||||||
|
- honest truth
|
||||||
|
- however
|
||||||
|
- if and when
|
||||||
|
- impacted
|
||||||
|
- implement
|
||||||
|
- in a manner of speaking
|
||||||
|
- in a timely manner
|
||||||
|
- in a very real sense
|
||||||
|
- in accordance with
|
||||||
|
- in addition
|
||||||
|
- in all likelihood
|
||||||
|
- in an effort to
|
||||||
|
- in between
|
||||||
|
- in excess of
|
||||||
|
- in lieu of
|
||||||
|
- in light of the fact that
|
||||||
|
- in many cases
|
||||||
|
- in my opinion
|
||||||
|
- in order to
|
||||||
|
- in regard to
|
||||||
|
- in some instances
|
||||||
|
- in terms of
|
||||||
|
- in the case of
|
||||||
|
- in the event that
|
||||||
|
- in the final analysis
|
||||||
|
- in the nature of
|
||||||
|
- in the near future
|
||||||
|
- in the process of
|
||||||
|
- inception
|
||||||
|
- incumbent upon
|
||||||
|
- indicate
|
||||||
|
- indication
|
||||||
|
- initiate
|
||||||
|
- irregardless
|
||||||
|
- is applicable to
|
||||||
|
- is authorized to
|
||||||
|
- is responsible for
|
||||||
|
- it is
|
||||||
|
- it is essential
|
||||||
|
- it seems that
|
||||||
|
- it was
|
||||||
|
- magnitude
|
||||||
|
- maximum
|
||||||
|
- methodology
|
||||||
|
- minimize
|
||||||
|
- minimum
|
||||||
|
- modify
|
||||||
|
- monitor
|
||||||
|
- multiple
|
||||||
|
- necessitate
|
||||||
|
- nevertheless
|
||||||
|
- not certain
|
||||||
|
- not many
|
||||||
|
- not often
|
||||||
|
- not unless
|
||||||
|
- not unlike
|
||||||
|
- notwithstanding
|
||||||
|
- null and void
|
||||||
|
- numerous
|
||||||
|
- objective
|
||||||
|
- obligate
|
||||||
|
- obtain
|
||||||
|
- on the contrary
|
||||||
|
- on the other hand
|
||||||
|
- one particular
|
||||||
|
- optimum
|
||||||
|
- overall
|
||||||
|
- owing to the fact that
|
||||||
|
- participate
|
||||||
|
- particulars
|
||||||
|
- pass away
|
||||||
|
- pertaining to
|
||||||
|
- point in time
|
||||||
|
- portion
|
||||||
|
- possess
|
||||||
|
- preclude
|
||||||
|
- previously
|
||||||
|
- prior to
|
||||||
|
- prioritize
|
||||||
|
- procure
|
||||||
|
- proficiency
|
||||||
|
- provided that
|
||||||
|
- purchase
|
||||||
|
- put simply
|
||||||
|
- readily apparent
|
||||||
|
- refer back
|
||||||
|
- regarding
|
||||||
|
- relocate
|
||||||
|
- remainder
|
||||||
|
- remuneration
|
||||||
|
- requirement
|
||||||
|
- reside
|
||||||
|
- residence
|
||||||
|
- retain
|
||||||
|
- satisfy
|
||||||
|
- shall
|
||||||
|
- should you wish
|
||||||
|
- similar to
|
||||||
|
- solicit
|
||||||
|
- span across
|
||||||
|
- strategize
|
||||||
|
- subsequent
|
||||||
|
- substantial
|
||||||
|
- successfully complete
|
||||||
|
- sufficient
|
||||||
|
- terminate
|
||||||
|
- the month of
|
||||||
|
- the point I am trying to make
|
||||||
|
- therefore
|
||||||
|
- time period
|
||||||
|
- took advantage of
|
||||||
|
- transmit
|
||||||
|
- transpire
|
||||||
|
- type of
|
||||||
|
- until such time as
|
||||||
|
- utilization
|
||||||
|
- utilize
|
||||||
|
- validate
|
||||||
|
- various different
|
||||||
|
- what I mean to say is
|
||||||
|
- whether or not
|
||||||
|
- with respect to
|
||||||
|
- with the exception of
|
||||||
|
- witnessed
|
||||||
207
docs/vale/styles/write-good/Weasel.yml
Normal file
207
docs/vale/styles/write-good/Weasel.yml
Normal file
@ -0,0 +1,207 @@
|
|||||||
|
extends: existence
|
||||||
|
message: "'%s' is a weasel word!"
|
||||||
|
ignorecase: true
|
||||||
|
level: warning
|
||||||
|
tokens:
|
||||||
|
- absolutely
|
||||||
|
- accidentally
|
||||||
|
- additionally
|
||||||
|
- allegedly
|
||||||
|
- alternatively
|
||||||
|
- angrily
|
||||||
|
- anxiously
|
||||||
|
- approximately
|
||||||
|
- awkwardly
|
||||||
|
- badly
|
||||||
|
- barely
|
||||||
|
- beautifully
|
||||||
|
- blindly
|
||||||
|
- boldly
|
||||||
|
- bravely
|
||||||
|
- brightly
|
||||||
|
- briskly
|
||||||
|
- bristly
|
||||||
|
- bubbly
|
||||||
|
- busily
|
||||||
|
- calmly
|
||||||
|
- carefully
|
||||||
|
- carelessly
|
||||||
|
- cautiously
|
||||||
|
- cheerfully
|
||||||
|
- clearly
|
||||||
|
- closely
|
||||||
|
- coldly
|
||||||
|
- completely
|
||||||
|
- consequently
|
||||||
|
- correctly
|
||||||
|
- courageously
|
||||||
|
- crinkly
|
||||||
|
- cruelly
|
||||||
|
- crumbly
|
||||||
|
- cuddly
|
||||||
|
- currently
|
||||||
|
- daily
|
||||||
|
- daringly
|
||||||
|
- deadly
|
||||||
|
- definitely
|
||||||
|
- deliberately
|
||||||
|
- doubtfully
|
||||||
|
- dumbly
|
||||||
|
- eagerly
|
||||||
|
- early
|
||||||
|
- easily
|
||||||
|
- elegantly
|
||||||
|
- enormously
|
||||||
|
- enthusiastically
|
||||||
|
- equally
|
||||||
|
- especially
|
||||||
|
- eventually
|
||||||
|
- exactly
|
||||||
|
- exceedingly
|
||||||
|
- exclusively
|
||||||
|
- extremely
|
||||||
|
- fairly
|
||||||
|
- faithfully
|
||||||
|
- fatally
|
||||||
|
- fiercely
|
||||||
|
- finally
|
||||||
|
- fondly
|
||||||
|
- few
|
||||||
|
- foolishly
|
||||||
|
- fortunately
|
||||||
|
- frankly
|
||||||
|
- frantically
|
||||||
|
- generously
|
||||||
|
- gently
|
||||||
|
- giggly
|
||||||
|
- gladly
|
||||||
|
- gracefully
|
||||||
|
- greedily
|
||||||
|
- happily
|
||||||
|
- hardly
|
||||||
|
- hastily
|
||||||
|
- healthily
|
||||||
|
- heartily
|
||||||
|
- helpfully
|
||||||
|
- honestly
|
||||||
|
- hourly
|
||||||
|
- hungrily
|
||||||
|
- hurriedly
|
||||||
|
- immediately
|
||||||
|
- impatiently
|
||||||
|
- inadequately
|
||||||
|
- ingeniously
|
||||||
|
- innocently
|
||||||
|
- inquisitively
|
||||||
|
- interestingly
|
||||||
|
- irritably
|
||||||
|
- jiggly
|
||||||
|
- joyously
|
||||||
|
- justly
|
||||||
|
- kindly
|
||||||
|
- largely
|
||||||
|
- lately
|
||||||
|
- lazily
|
||||||
|
- likely
|
||||||
|
- literally
|
||||||
|
- lonely
|
||||||
|
- loosely
|
||||||
|
- loudly
|
||||||
|
- loudly
|
||||||
|
- luckily
|
||||||
|
- madly
|
||||||
|
- many
|
||||||
|
- mentally
|
||||||
|
- mildly
|
||||||
|
- monthly
|
||||||
|
- mortally
|
||||||
|
- mostly
|
||||||
|
- mysteriously
|
||||||
|
- neatly
|
||||||
|
- nervously
|
||||||
|
- nightly
|
||||||
|
- noisily
|
||||||
|
- normally
|
||||||
|
- obediently
|
||||||
|
- occasionally
|
||||||
|
- only
|
||||||
|
- openly
|
||||||
|
- painfully
|
||||||
|
- particularly
|
||||||
|
- patiently
|
||||||
|
- perfectly
|
||||||
|
- politely
|
||||||
|
- poorly
|
||||||
|
- powerfully
|
||||||
|
- presumably
|
||||||
|
- previously
|
||||||
|
- promptly
|
||||||
|
- punctually
|
||||||
|
- quarterly
|
||||||
|
- quickly
|
||||||
|
- quietly
|
||||||
|
- rapidly
|
||||||
|
- rarely
|
||||||
|
- really
|
||||||
|
- recently
|
||||||
|
- recklessly
|
||||||
|
- regularly
|
||||||
|
- remarkably
|
||||||
|
- relatively
|
||||||
|
- reluctantly
|
||||||
|
- repeatedly
|
||||||
|
- rightfully
|
||||||
|
- roughly
|
||||||
|
- rudely
|
||||||
|
- sadly
|
||||||
|
- safely
|
||||||
|
- selfishly
|
||||||
|
- sensibly
|
||||||
|
- seriously
|
||||||
|
- sharply
|
||||||
|
- shortly
|
||||||
|
- shyly
|
||||||
|
- significantly
|
||||||
|
- silently
|
||||||
|
- simply
|
||||||
|
- sleepily
|
||||||
|
- slowly
|
||||||
|
- smartly
|
||||||
|
- smelly
|
||||||
|
- smoothly
|
||||||
|
- softly
|
||||||
|
- solemnly
|
||||||
|
- sparkly
|
||||||
|
- speedily
|
||||||
|
- stealthily
|
||||||
|
- sternly
|
||||||
|
- stupidly
|
||||||
|
- substantially
|
||||||
|
- successfully
|
||||||
|
- suddenly
|
||||||
|
- surprisingly
|
||||||
|
- suspiciously
|
||||||
|
- swiftly
|
||||||
|
- tenderly
|
||||||
|
- tensely
|
||||||
|
- thoughtfully
|
||||||
|
- tightly
|
||||||
|
- timely
|
||||||
|
- truthfully
|
||||||
|
- unexpectedly
|
||||||
|
- unfortunately
|
||||||
|
- usually
|
||||||
|
- very
|
||||||
|
- victoriously
|
||||||
|
- violently
|
||||||
|
- vivaciously
|
||||||
|
- warmly
|
||||||
|
- waverly
|
||||||
|
- weakly
|
||||||
|
- wearily
|
||||||
|
- weekly
|
||||||
|
- wildly
|
||||||
|
- wisely
|
||||||
|
- worldly
|
||||||
|
- wrinkly
|
||||||
|
- yearly
|
||||||
4
docs/vale/styles/write-good/meta.json
Normal file
4
docs/vale/styles/write-good/meta.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"feed": "https://github.com/errata-ai/write-good/releases.atom",
|
||||||
|
"vale_version": ">=1.0.0"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user