From 4298ee1e67d2210a3d91e4782cee240c0b91c41b Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Sun, 21 Feb 2021 20:00:59 -0500 Subject: [PATCH] Fix parseNounOptions() Set the proper variables for the "compound" and "simple" noun options. --- english.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/english.go b/english.go index 0f73945..c9b95a1 100644 --- a/english.go +++ b/english.go @@ -162,9 +162,9 @@ func (g *english) parseNounOptions(optlist []string) (bool, bool) { var compound bool = rand.Int() % 2 == 0 if sliceContains(optlist, "compound") { - plural = true + compound = true } else if sliceContains(optlist, "simple") { - plural = false + compound = false } return plural, compound