From 59343064c6e330844c52f3f7272f1c38ae5b8dd8 Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Sat, 20 Feb 2021 21:17:12 -0500 Subject: [PATCH] Add note about irregular nouns not being implemented --- models/noun.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/models/noun.go b/models/noun.go index a34c3c6..c799c99 100644 --- a/models/noun.go +++ b/models/noun.go @@ -1,6 +1,7 @@ package models import ( + "fmt" "strings" ) @@ -19,6 +20,11 @@ type Noun struct { } func (n Noun) Plural() string { + if !n.Regular { + fmt.Println("[noun] Irregular nouns not implemented") + return n.Word + } + suffixes := []string{ "s", "x",