Skip to content

Should García Márquez, Juan fill surname1 and surname2 under two_family_names, as Juan García Márquez does? #1456

Closed

Description

@derek73

Under two_family_names the family reads the same with or without a family comma, and the surname views do not (measured on master c878443, Parser(policy=Policy(two_family_names=True))):

Juan García Márquez    → family 'García Márquez', surname1 'García', surname2 'Márquez'
García Márquez, Juan   → family 'García Márquez', surname1 'García Márquez', surname2 ''

rules/R10 (the second-surname view) accepts this: "A family comma marks nothing, even where the part before it holds two family names, since nothing in it tells them from one compound name." rules/O6 (two family names) stands down at a family comma, which "decides by itself".

The case for filling them. The compound-name doubt is the same without the comma, and there the switch already decides it: Andrew Lloyd Webber reads surname1 'Lloyd', surname2 'Webber' under the switch, where Lloyd Webber, Andrew reads surname1 'Lloyd Webber'. The caller has declared that a family holds two names. The comma adds certainty about where the family ends, which is the half the switch otherwise takes on trust.

How often (2026-11-18, orcid-researchers, the free-text credit name, holders in 20 Spanish-speaking countries, read under locales.ES): 2,005 credit names are written with one comma; 811 have two words before it; in 607 those two words are the holder's own family box. All 607 read surname2 ''. ORCID's credit names lean towards bibliographic bylines, where the comma form is common.

Proposed. Under two_family_names, where the part before a family comma holds exactly two name units, the first makes surname1 and the second surname2, as the comma-less name reads them. No field moves: family is already both.

Questions.

  1. Which heads count as two units? García Márquez does. de la Vega Ruiz reads as one unit without the comma too (Juan de la Vega Ruiz → surname2 ''), so it would stay one. A head of three words (García Márquez López, Juan) has no comma-less reading to follow.
  2. Does the given-name veto apply? Without a comma it keeps José Luis Pérez from reading Luis as a surname. Before a comma both words are family by the writer's own mark, so a listed given name there (Martín López, Ana) should arguably still split.
  3. Is this the view rule reading the comma's family by itself, or O6 marking the units? The view reads O6's mark today, and O6 does not run at a family comma. Where the change lands was not checked in the code.
  4. The same Accepted clause leaves a connective and a hyphen empty (Ortega y Gasset, García-López), which decisions/R10 holds as an open question with no issue. Those are marked by the writer even with the switch off. Decide them here, or apart?
  5. With the switch off, nothing changes: Lloyd Webber, Andrew stays one unit.

Because: a caller who asks for the first surname should get the same answer for one person written two ways.

Activity

  1. added this to the 3.2 milestone on Nov 18, 2026
  2. self-assigned this
    on Nov 18, 2026
  3. added
    name-order
    commas
    rendering
    on Nov 18, 2026
  4. derek73 commented on Nov 19, 2026

    @derek73
    OwnerAuthor

    Decided 2026-11-19.

    The principle: the two writings of one name return the same units wherever they yield the same family. The division is a function of the family's words alone, and the comma path and the comma-less path both call it.

    The five questions in order:

    1. Two units, as the comma-less name reads them. García Márquez, Juan and Ruiz de la Vega, Juan divide. de la Vega Ruiz, Juan divides once surname1 and surname2 leave a two-surname family whole where it opens with a particle or follows María del Carmen (Juan de la Vega Ruiz gives surname2 '') #1479 divides the comma-less form. A head of three words (García Márquez López, Juan) is left whole: comma-less, García reads as a middle name and the family is Márquez López, so the two writings share no family to divide alike.
    2. No given-name veto before the comma. The writer marked both words as family, so Martín López, Ana divides, though Ana Martín López under locales.ES keeps Martín a middle name. The families differ there, so the principle does not bind.
    3. One place decides. The units are marked by the rule that marks them today, through one function both paths call, not by a second reading inside the view. To be confirmed against the code; a reason it cannot be done so is reported, not worked around.
    4. A connective and a hyphen (Ortega y Gasset, García-López) are decided apart. They are marked by the writer with the switch off too.
    5. With the switch off, nothing changes.

    With #1479, one change. Built apart, the comma form would copy the comma-less form's gaps. The test holds the two writings to the same division for every head whose family is the same.

    locales.ES turns the switch on, so the views move for callers of the Spanish packs, and of the Portuguese ones once #1453 lands; the release note says so.

  5. derek73 commented on Nov 19, 2026

    @derek73
    OwnerAuthor

    Decided 2026-11-19, on PR #1485's questions.

    1. A family the capitals rule named is divided too (Ana GARCÍA LÓPEZ under capitals_as_family and two_family_names). It follows from the principle, the division being a function of the family's words. Where rules/O9 has taken the wrong words as the family the views follow that reading and add no error of their own.
    2. The moves the issues did not ask for are accepted (62 names given-first and 93 under each family-first order under locales.ES): each was a wrong division before, a lone particle or connective counted as a surname among them.
    3. A lone particle ending a family (Juan García de) stays the second unit, as it read before. Nobody writes it.
    4. The connective and the one-word hyphen stay open in decisions/R10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

commasname-orderquestionrendering

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions