Problem/Motivation
The proper use of 'e.g.' and 'i.e.' are confusing and reportedly are one of the most frequent sources of mistakes editors see in technical writing/documentation. Drupal's docblock and code documentation includes some examples of incorrect usage as well.
Let's start to correct some of that confusion by replacing 'e.g.,' by what it means in English: 'for instance,'. This will require a number of patches until 'e.g.' is appropriately replaced. Based on the first round, the patch size should be around 50k.
Note: Frequently, the replacement of text with 'for instance' or 'for example' requires the re-wrapping of docblocks and code comments to be near but less than 80 characters.
Steps to reproduce
Proposed resolution
Remaining tasks
Postponed on #2714651: Add a rule for replacing e.g. and i.e. with English words
Comments
Comment #2
aditya_anurag commentedComment #3
aditya_anurag commentedComment #4
jhodgdon@malavya -- THANKS for making this meta and renaming all the child issues!
Meta issues should be category "Plan", for future reference. They should stay as Active until all of their child issues are fixed.
Comment #5
jhodgdonNote: This issue needs one more child issue that would fix i.e. and e.g. in user interface text, throughout Core. The other issues should be limited to API documentation and code comments. Thanks!
Comment #6
joyceg commentedThis is really something we need to work out. Often people get confused by these words. So, it's preferred to give some kind of an expansion.
Comment #7
pashupathi nath gajawada commentedComment #8
jhodgdonRE #7 - we are working on this issue in several child issues. Please do your work there and do not assign this "meta" (master) issue to yourself. Thanks!
Comment #9
pashupathi nath gajawada commentedHi @jhodgdon,
Thanks for the info, I was not aware that this "meta" (master) issues should not be assigned.
Comment #10
jhodgdonOn one of the child issues, #2637336-33: Replace i.e. and e.g. with English words in /core/includes and /core/misc directory, catch pointed out that we need a Coder/DrupalCS rule before any of these issues can be committed. See
https://www.drupal.org/core/scope#coding-standards
So I will delay reviewing any more on these issues until that is done.
Please add an issue in Coder for a rule that will "sniff" i.e. and e.g. (with or without the final .), and make it a child of this issue, and then we can proceed with the other issues.
Comment #11
imalabyaHi jhodgdon,
have added the issue for coder rule for this as a child issue https://www.drupal.org/node/2714651
Comment #13
Bojhan commentedThis sounds like a great plan. What is now the proposal for a new set of terms?
Comment #17
cilefen commentedBased on how long it is taking to patch this I am faced with two contradictory thoughts:
Comment #18
xjmThese issues need to be postponed until #2714651: Add a rule for replacing e.g. and i.e. with English words is resolved. Thanks!
Comment #19
xjmAlso, once the coder rule is added, maybe we should handle i.e. and e.g. separately? The replacement for e.g. is usually "for example" unless it's used incorrectly, but i.e. can depend more on context and usage.
Comment #29
quietone commentedThis came up at a documentation triage meeting. I am adding the standard template and updating the is.
Comment #32
quietone commentedThe related issue in the Coding Standard project has been closed as won't fix. #2760911: Use of "e.g." and "i.e."