Skip to content

Commit

Permalink
Update Fractions.yml (#79)
Browse files Browse the repository at this point in the history
Added rule to search for spelling out and hyphenating generic fractions (e.g., update 2/3rds to "two-thirds")
  • Loading branch information
wordsmeanstuff authored Oct 3, 2023
1 parent 8dfacf1 commit 23629c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions styles/Splunk/Fractions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
extends: existence
message: "If you're referring to a generic fraction and not one that refers back to a specific number, hyphenate the spelled-out fraction. Use numerals and forward slashes with no additional formatting to represent numerical fractions."
message: "When referring to a generic fraction, hyphenate it. Use numerals and forward slashes to show numerical fractions."
link: https://docs.splunk.com/Documentation/StyleGuide/current/StyleGuide/Fractions
nonword: true
ignorecase: true
Expand All @@ -11,4 +11,5 @@ tokens:
- '\d+-\d+\/\d+'
- '\d+-(?:½|¾)'
- '\d+(?:½|¾)'
- '\d+\/\d+(?:rds|ths)'
- '\d+\/\d+(?:rds|ths)'
- '\b(?:one|two|three|four|five|six|seven|eight|nine|\d+)\s(?:half|third|quarter|fifth|sixth|seventh|eighth|ninth|tenth|eleventh|twelfth|thirteenth|fourteenth|fifteenth|sixteenth|seventeenth|eighteenth|nineteenth|twentieth)s\b'

0 comments on commit 23629c9

Please sign in to comment.