What the style guides say
“main directory”
2 of 16 open style guides have a rule about “main directory.” Both say to write “root directory” instead.
Write this instead
- root directory 2 guides
Red Hat, IBM
Guide by guide
No rule names it in Google, Microsoft, GitLab, Grafana, Elastic, Datadog, Splunk, Salesforce, Docker, Canonical, Apify, Spectro Cloud, 18F, GOV.UK. That doesn’t mean those guides approve of it, only that no rule lists it.
Catch it in every draft
Each line above is a rule one of these organizations publishes for Vale, an open-source linter for prose. Install a guide’s rules and Vale flags the term wherever it appears, in your editor and on every pull request.