From 23629c90a83620be830ef9b8154c42d8acb581b1 Mon Sep 17 00:00:00 2001 From: Alyssa Yell <79939233+wordsmeanstuff@users.noreply.github.com> Date: Tue, 3 Oct 2023 16:34:40 -0700 Subject: [PATCH] Update Fractions.yml (#79) Added rule to search for spelling out and hyphenating generic fractions (e.g., update 2/3rds to "two-thirds") --- styles/Splunk/Fractions.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/styles/Splunk/Fractions.yml b/styles/Splunk/Fractions.yml index 8612b4a..062b780 100644 --- a/styles/Splunk/Fractions.yml +++ b/styles/Splunk/Fractions.yml @@ -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 @@ -11,4 +11,5 @@ tokens: - '\d+-\d+\/\d+' - '\d+-(?:½|¾)' - '\d+(?:½|¾)' - - '\d+\/\d+(?:rds|ths)' \ No newline at end of file + - '\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'