The recently released Mapbox retext project (https://github.com/mapbox/retext-mapbox-standard) includes a series of useful resources to simplify the language in technical docuemntation. I often need to write technical documents using MS Word and wanted similar funcionality for my Word documents.
This project has an MS Word VBA module to check the style of technical documents. It checks for three categories of style improvement:
- words which generally add no meaning
- words which shouldn't start a sentence
- complex words which could be simplified
For each potential improvement found, a comment is added to the document.
#Installation
- Enable the developer ribbon: Word Options -> Customize Ribbon -> Make sure "Developer" is checked
- On the main screen go to the "Developer" ribbon and click "Visual Basic".
- Under Normal -> Modules, right-click and select "Import File"
- A module called "techDocStyleChecker" will appear
#Running Go to the "techDocStyleChecker" module and run "checkStyle()".
###Assigning to a Hotkey
- Word Options -> Customize Ribbon
- Find "Keyboard shortcuts" and click the "Customize" button
- In "Categories" select "Macros"
- In "Macros" select "checkStyle"
- Click into "Press new shortcut key"
- Press key combination
- Click "Assign"
###Adding to Quick Access Toolbar
- Word Options -> Quick Access Toolbar
- Set "Choose commands from" to "Macros"
- Add "Normal.techDocStyleChcker.checkStyle()" to Quick access
###Adding to Ribbon
- Word Options -> Customize Ribbon
- Set "Choose commands from" to "Macros"
- Choose tab, and click "New Group"
- Add "Normal.techDocStyleChcker.checkStyle()" to new group
#Configuration and customisation No configuration is necessary to run the style checker. The terms used in each of the categories are set directly in the code, so they can be customised as required:
- setupWordsToRemove()
- setupSentenceStartWordsToRemove()
- setupWordSimplifications()