Problem/Motivation
In developing a new and improved Getting Involved Guide, we want to make sure that we use clear, inclusive, accessible language.
This issue is about developing the standards for that. The standards may include guidelines for language, templates for pages, etc. Then on #3072788: Evaluate, pick, and configure checking/linting tools for the Getting Involved Guide we are researching if there are automated tools we can use to enforce some of the guidelines.
Background information
The Drupal project has several existing style guidelines that could be useful in developing these standards:
- From the User Guide project:
https://www.drupal.org/docs/user_guide_guidelines/good-writing.html
https://www.drupal.org/docs/user_guide_guidelines/guidelines-writing.html
https://www.drupal.org/docs/user_guide_guidelines/guidelines-editing.html
https://www.drupal.org/docs/user_guide_guidelines/templates.html - Style guide for the text in the Drupal software user interface:
https://www.drupal.org/node/604342 - Style guide for content on drupal.org:
https://www.drupal.org/drupalorg/style-guide/content
Note that this says the Chicago Manual of Style and Strunk & White are the basis for guidelines for content on drupal.org -- this may be an outdated choice.
Other projects also have style guidelines that may be useful:
- Django Girls Coaching Manual (has a few tips on language):
https://coach.djangogirls.org/tips/ - W3 Accessibility guidelines:
https://www.w3.org/TR/WCAG21/
Several sections are applicable. Some are technical (like order of headings, alt tags on images) and these can be checked with automated tools most likely. There is also a whole section about readability:
https://www.w3.org/TR/WCAG21/#readable - It seems like many people these days use the AP style guide as a basis for their style guidelines
Proposed resolution
We decided that we would do the following:
- Use the existing drupal.org style guidelines
- Add additional guidelines in the form of automated testing tools and their configuration, from #3072788: Evaluate, pick, and configure checking/linting tools for the Getting Involved Guide.
Remaining tasks
Decide on the tools and their configuration on #3072788: Evaluate, pick, and configure checking/linting tools for the Getting Involved Guide
Comments
Comment #2
jhodgdonAdding W3 and accessibility tools to the list.
Comment #3
chicagomom commentedRachel_Norfolk mentioned natural language linters. Possible?
Alex is a natural language linter for inclusive language that can be incorporated into CI systems (npm). Textlint is also available for npm. Maybe look at something like these? (disclaimer: I wouldn't know how to make that happen.)
Comment #4
jhodgdonThanks, I've added these two linters to the issue summary, and have added explanations for a few tools. Oh, actually Alex was already there, but textlint wasn't. Now we have 3 "lint" tools to look at!
Comment #5
mdstamm commentedComment #6
jhodgdonOne note: People suggested here that the AP style guide should be our base reference. As a note, historically on drupal.org:
https://www.drupal.org/drupalorg/style-guide/content#resources
we have said the Chicago Manual of Style and Strunk & White were our go-to guides... I think probably AP is a more modern alternative? Those style guidelines are about (mostly) a decade old.
Comment #7
jhodgdonSorry mdstamm, didn't mean to unassign the issue -- I had an old form loaded and d.o didn't warn me. You'll need to reassign (I cannot assign it to you).
Comment #8
mdstamm commentedComment #9
jhodgdonWe had a discussion at the last meeting
#3071307: Meeting - Getting Involved Guide - 30 July 2019
Some things we discussed... in case the Slack history goes away:
Miscellaneous thoughts
- Use the AP style guide as a basis for our style guide
- Although see https://www.drupal.org/drupalorg/style-guide/content to see what references we have used historically. They may be outdated? It seems like many organizations use the AP style guide these days. Is it available online?
- mdstamm volunteered to manage this issue
Testing linting tools
We need to test the "linting tools" that are in the issue summary (plus additional tools if people have suggestion as to which tools would be useful). Hopefully, various people can each "claim a tool" and test it out.
The thoughts we had about testing these were:
a) Test them all on a single existing drupal.org page. Possibly use
https://www.drupal.org/contributor-tasks/support-requests [no pictures]
or
https://www.drupal.org/contributor-tasks/accessibility-review [has at least one image]
b) Questions to be answered:
- What platforms does it run on?
- Is it interactive or can it be scripted?
- Is it free/open source or proprietary?
- Is it easy to run on a drupal.org web page (or do you need to do something first like export to a file of some sort)?
- How difficult is it to install/configure (what are the steps or a URL pointing to them)?
- What results does it give you for [let's pick one drupal.org page to run on]?
- What does it analyze? [accessibility? readability? grade level of language? etc.]
c) It may be useful to make a spreadsheet (Google Sheet) that people testing the tools can add to.
Comment #10
jhodgdonWe've been discussing this issue and decided to separate it into two issues. So, I created #3072788: Evaluate, pick, and configure checking/linting tools for the Getting Involved Guide and am editing this issue to make it about style guidelines.
Comment #11
jhodgdonAdding notes on AP style guide, and the basis of drupal.org's style guidelines, to the issue summary.
Comment #12
jhodgdonWe discussed this today at the meeting.
It seems like the consensus is that we should use the existing drupal.org style guidelines, with some additions to check accessibility, grammar, spelling, and reading level that will come from #3072788: Evaluate, pick, and configure checking/linting tools for the Getting Involved Guide.
I'm updating the issue summary here and tentatively marking it Fixed.
@rachel_norfolk can you update the credit on this issue? I don't have permission to do that.
Comment #13
rachel_norfolkComment #14
rachel_norfolk