From cdbad827fe5b187f4c6abdb9b5fafb355541a827 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 16 Nov 2019 10:15:55 -0500 Subject: [PATCH] reinstate bit - gak! --- src/objnam.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/objnam.c b/src/objnam.c index ba301b9cf..9cf7edda0 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -2205,7 +2205,11 @@ const char *const *alt_as_is; /* another set like as_is[] */ } } - /* avoid false hit on one_off[].plur == "lice" or .sing == "goose"; + /* Leave "craft" as a suffix as-is (aircraft, hovercraft); + "craft" itself is (arguably) not included in our likely context */ + if ((baselen > 5) && (!BSTRCMPI(basestr, endstring - 5, "craft"))) + return TRUE; + /* avoid false hit on one_off[].plur == "lice" or .sing == "goose"; if more of these turn up, one_off[] entries will need to flagged as to which are whole words and which are matchable as suffices then matching in the loop below will end up becoming more complex */