Results 1 to 4 of 4

Thread: a couple of unknown plurals

  1. #1
    Senior Member AlbinoRhino's Avatar
    Join Date
    May 2008
    Posts
    825

    Default a couple of unknown plurals

    Recently ran across a couple of unknown plurals. (Attached...using r18920)

    Also, ran into this:

    PHP Code:
    ash to_plural($item[water purification pills])

    Returned:     water purification pillss 
    I am assuming one could just add 'water purification pills' as a plural in items.txt and that would avoid the extra 's'?

    Haven't done that in the patch but thought I would mention it as there may be more 'naturally' pluralized items...or not? But it seems like a glitch that could affect other things.
    Attached Files

  2. #2
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,410

    Default

    If you don't specify a plural, we assume it is item name + 's'.

    A 'natural' plural of "water purification pills" might be "bottles of water purification pills", but we make no such assumption. It might be "plates of" or "heaps of" or whatever. Or, as in this case, simply "water purification pills".

    So, as you suggest, simply recording "water purification pills" as the plural of "water purification pills" is the way to go.

    Thanks for the patch!

  3. #3
    Developer
    Join Date
    Apr 2010
    Posts
    4,810

    Default

    r18922

  4. #4
    Senior Member AlbinoRhino's Avatar
    Join Date
    May 2008
    Posts
    825

    Default

    Ha...this is from using the closet interface in the relay browser ( to_plural() DID match the game ):

    You stored 859 water purification pillss in your closet.
    Last edited by AlbinoRhino; 10-01-2018 at 12:35 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •