From d725c7c5e6d35f5b61c220f0d8f19562f8a56e1e Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Tue, 17 Dec 2019 21:34:16 -0500 Subject: [PATCH 1/2] One analysis, two analyses --- core/dbt/compilation.py | 2 +- core/dbt/utils.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/dbt/compilation.py b/core/dbt/compilation.py index 1571ecca11c..0d7a4b72f22 100644 --- a/core/dbt/compilation.py +++ b/core/dbt/compilation.py @@ -36,7 +36,7 @@ def print_compile_stats(stats): NodeType.Model: 'model', NodeType.Test: 'test', NodeType.Snapshot: 'snapshot', - NodeType.Analysis: 'analyse', + NodeType.Analysis: 'analysis', NodeType.Macro: 'macro', NodeType.Operation: 'operation', NodeType.Seed: 'seed file', diff --git a/core/dbt/utils.py b/core/dbt/utils.py index 0b56cfa5a09..d8cde6a8f02 100644 --- a/core/dbt/utils.py +++ b/core/dbt/utils.py @@ -514,6 +514,8 @@ def translate_aliases(kwargs, aliases): def pluralize(count, string): if count == 1: return "{} {}".format(count, string) + elif string[-2:] == 'is': # Latin third declension i-stem + return "{} {}es".format(count, string[0:-2]) else: return "{} {}s".format(count, string) From d98613db13f43a99a67570968fdb6893ffa6b71c Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Wed, 18 Dec 2019 10:06:44 -0500 Subject: [PATCH 2/2] Mutatis mutandis --- core/dbt/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dbt/utils.py b/core/dbt/utils.py index d8cde6a8f02..4076f9f5eb1 100644 --- a/core/dbt/utils.py +++ b/core/dbt/utils.py @@ -514,8 +514,8 @@ def translate_aliases(kwargs, aliases): def pluralize(count, string): if count == 1: return "{} {}".format(count, string) - elif string[-2:] == 'is': # Latin third declension i-stem - return "{} {}es".format(count, string[0:-2]) + elif string == 'analysis': + return "{} {}".format(count, 'analyses') else: return "{} {}s".format(count, string)