From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a05:620a:b19:: with SMTP id t25mr14803501qkg.82.1575646254312; Fri, 06 Dec 2019 07:30:54 -0800 (PST) X-Received: by 2002:aca:72cd:: with SMTP id p196mr11834504oic.99.1575646254147; Fri, 06 Dec 2019 07:30:54 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no38442qtd.0!news-out.google.com!w29ni292qtc.0!nntp.google.com!g89no38438qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 6 Dec 2019 07:30:53 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=47.185.234.173; posting-account=zwxLlwoAAAChLBU7oraRzNDnqQYkYbpo NNTP-Posting-Host: 47.185.234.173 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <276cc5bd-29d8-4bee-8379-c3384f889d4e@googlegroups.com> Subject: Re: Type naming conventions: Any_Foo From: Optikos Injection-Date: Fri, 06 Dec 2019 15:30:54 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57668 Date: 2019-12-06T07:30:53-08:00 List-Id: On Thursday, December 5, 2019 at 4:51:36 AM UTC-6, AdaMagica wrote: > Of all of these schemes, my favorite is > Package Foos In this or any other naming convention that utilizes plural, the convention= must eventually inform what to do (in English) with nouns that a) are the same in both plural & singular (e.g., fish, deer); and b) have no plural, such as noncount/mass-count nouns (e.g., furniture, soft= ware); and c) the plural (if it exists) most likely refers to the type-of not the (mic= roscopic) instance-of due to using measure words for referring to the (micr= oscopic) instances of (e.g., flour [as dust] versus flours as type of flour= ; [grain of] sand versus sands as type of sand; [kernel of] rice/corn versu= s rices as types of rice/corn]); and d) the plethora of measure words, especially for demarcating plural of indi= viduals or of groups (e.g., lions as multiple individuals versus pride of l= ions as a cohesive group versus prides of lions as multiple of multiple); a= nd e) nonconforming foreign-import plurals (e.g., courts marshal; attorneys ge= neral); and f) acronyms & initialisms, especially when the pluralized noun in the acron= ym or initialism is not the final word (e.g., should certificates of deposi= t be CDs and attorneys general be AGs since it is not certificate of deposi= ts and attorney generals?); and g) Latin-derived plurals versus English-derived plurals (e.g., radii versus= radiuses both being perfectly correct & widely accepted in English). (Of which f is the most pedantic in a case-insensitive language such as Ada= , because usually the nonagreement is DVDs versus Dvds and CDs versus Cds, = not CsD, and AGs versus Ags, not AsG.) Given all that opportunity for debate, there is some wisdom in rejecting En= glish plurals per se to instead: A) always add -s when the singular phonetically ends in not-s and always ad= d -es when the singular phonetically ends in -s, as in mouse->mouses, ax->a= xes, axis->axises. or B) always use the same affix as prefix or suffix, as in Pkg_Foo or Foo_Pkg. Option B makes scripting automation especially easy in the build environmen= t or in source-code generation or refactoring, so that the scripting need n= ot have AI-esque knowledge of English (or an artificial-artificial intellig= ence of a giant human-curated look-up table).