Help: Placename Formatting
Overview

This help file describes the programs and options that are installed by the Placename Format mod, and are accessible through tabs in the Administration >> Places pages. The unifying feature of these utilities is the Placename Formatting process that

  1. Makes sure that USA places are consistent in the way that they express the country, the state, and the county.
  2. Knows state names and abbreviations,
  3. Recognizes locales such as "East Texas", "Ohio or Kentucky", and "New England" that are not states, but that act like states in the place hierarchy.", which are not counties, but , "Merges redundant Placenames such as "Houston, TX", "Houston, Harris County, Texas, United States", "Houston, Harris, Texas", and so on,
  4. Recognizes locales such as "Long Island" and "Shenandoah Valley" that are not counties (and shouldn't have the word "County" appended to them), but which act like counties in the place hierarchy, and
  5. Recognizes funky census locations such as such as "Magisterial District 10", "Beat 5", "Civil District 8", etc., and deals with them appropriately.

In order for the formatting to work, the process has to know if a Placename is in the USA. To do this, it looks at the last element (that is the last "comma-part") of the Placename, which must be either

  1. A string that specifies the USA; i.e. "USA", "U.S.A.", "United States", etc.,
  2. A USA state name or abbreviation (e.g. Alabama, AL, Texas, TX, etc.), or
  3. Specified "non-states", or what I sometimes call "pseudo-states")
    The notion of a non-state lets the Placename Formatting process recognize terms like "East Tennessee", "North Georgia", "New England", "Alabama or Mississippi", etc. as though they were real U.S. states.
The USA strings and the list of non-standard USA states are configurable options.

Significantly - although the Placename Formatting options and the PHP code that formats places are installed by the Placename Format mod, as of early December, 2017, the Placename Formatting code is executed only through the Gedcom Converter, which is installed by the Gedcom Converter Mod.

Top

Place Level Utility at Admin >> Places >> Levels

This utility sets the place levels for USA places and for non-USA placenames that just consist of a country name. On a kickoff form, you can tell it

  1. Which tree to process (or all trees), and
  2. What to do:
    1. Calculate a Placelevel for all Places,
    2. Process only Only Places whose Placelevel is not defined (i.e. is zero or null), or
    3. Reset all Plavelevel values to zero

The USA placenames must be formatted according to the Placename Formatting options, which control the way that Placenames express the country, the state, and the county. For instance, USA placenames must end with the representation of USA specified in the options, and the state name for states with subordinate locales (e.g. a county or city) must be consistently either abbreviated or not, as specified by another option.

Among non-USA placenames, if there is no comma in the placename, it is identified as a country. But the Placelevels for all other non-USA placenames is left undefined.

The program displays a list of the non-USA places that it could not process, and their current Placelevel.

Top

Placename Formatting Options Utility at Admin >> Places >> Name Options

These options control:

  1. The Placename Formatting process re-formats USA Placenames in a Gedcom file, during the Gedcom Conversion process. Reformatted placenames are consistent in the way they express
    1. The country (e.g. possibly always "USA" rather than a mix of "USA", "United States", etc.),
    2. The state name or abbreviation, and
    3. The county - particularly the "county designator" such as "County" or "Parish").
  2. and the Place Level-assignment process for USA Placenames in the news- Place Level utility described above.
The Placename Formatting Options also
  1. Specify substrings that identify burial places for use by the Admin>>Cemeteries and Admin>>Places,
  2. Specify substrings that identify certain funky census places (such as "Civil District 10, Barr County, Ohio) that are not really towns, and that don't contribute to geocoding,
  3. Specify other substrings that identify place-parts in placenames.
  4. Assign place levels to USA Placenames in the Place Level utility described above, and
Note that (at least for now), the Placename Formatting process only affect USA places

Top

Placename Formatting Options

The Placename Formatting Options are stored in the configuration file rrplacenameformat_config.php in the TNG extensions folder. They can be edited through the new "Format Options" tab at Admin>>Places, and as part of the Gedcom Converter kickoff form (i.e. the "Converter" tab under Admin>>Import/Export).

The options are broken out into three groups, and there are "Save Place Options" buttons at the top and the bottom of the form.

Placename Formatting Options
This button does not submit the form. Instead, it uses Ajax to save the Place Options to their config file without submitting the form. You can thus use options that you do not save. A separate "Convert Gedcom File" submit button (placed outside of the Fieldset boxes that encloses the options) submits the form, and passes the options in the both subforms to the Gedcom Converter.

A. Names for the USA, 'non-States', and 'non-Counties'

  1. A placename that ends with any of these strings (as a full "place-part") is immediately recognized as a USA place.
  2. <<Click the button to show and hide the subform>>
    Non-states are named regions that act like states in placenames, but that aren't USA states. All 50 U.S. States are automatically defined as 'States', but the District of Columbia and the U.S. territories and protectorates (Puerto Rico, Guam, etc.) are not. Placees such as 'New England' or 'TN or SC' can also be defined as non-states for the purpose of formatting placenames. ('Non-states' can have cities and cemeteries, but cannot have counties.)

    The list of Non-Standard States is be edited in a two column subform behind the button. Each Non-Standard State must have a name and an abbreviation. Note that some of the abbreviations I have defined are identical to the names.

  3. <<Click the button to show and hide the subform>>
    When the Placename Formatting process sees a placename such as "Cleveland, Cuyahoga, Ohio", it recognizes "Cuyahoga" as a county name, and (depending on the county designator options below), it may try to add the word "County" to it. To avoid changing names such as "Flatbush, Brooklyn, NY" to "Flatbush, Brooklyn County, New York" or "Seaford, Long Island, NY" to "Seaford, Long Island County, New York", while still allowing "Brooklyn, Michigan" to act as a county, you can enter Brooklyn,NY; Long Island,NY, and similar locales into the non-Counties subform.

    Note that the presence of a state abbreviations in the definition of "non-counties" does not mean that placenames with "non-counties" in the old Gedcom file must use the state abbreviation; The Placename Formatting process knows about state names and abbreviations, so it can deal with a placename that uses either the abbreviation or the full name.

B. Strings that identify special cases of the City component of a Placename

  1. a.
    b. What to do with Burial Place names in the City position



    This option serves at least two purposes. First, when a placename specifies a burial place in a county but not in a town, this option allows the Placename Formatting process and the Place Levels utility (described below) to recognize the the burial place as a location rather than a town, and thus
    • The Placename Formatting process can make sure that the county name includes the county designator (if it isn't a non-county as specified above), and
    • The Placelevel utility can assign it the Placelevel value for "location" rather than "city/town".

    Second, the Cemetery Edit mod changes the Cemetery editor so that it can match the cemetery name being entered with Place names that specify burial places.

    Note that, unlike the USA text option, the non-states, and the non-counties, these strings are just substrings within a place-part.

  2. a.
    b. What to do with these 'Non-cities':





    This option is similar to the Cemeteries option above, but isn't nearly as important. I actually implemented it before I realized that I didn't have much use for it. It really affects only two placenames in my database. One is "Battle of Franklin, Franklin County, Tennessee", where "Battle of Franklin" is not a city, and where the battle's geocoordinates are no more precise than the county. Note that, unlike the Cemetery strings, the "Battle of" string refers to a locale that has County precision, not Location precision.

    I also have a place for the Battle of Chickamauga (also in Tennessee), where the battlefield was larger than a county. I could specify "Battle of Chickamauga,TN" as a non-county, but instead, I wound up specifying the placename as "Battle of Chickamauga, , Tennessee" (with a double comma) so that the non-town string "battle of" could cause it to having the placelevel (i.e. precision) of "County".

    Note that a Placename Formatting option below tells the Placelevel utility what precision to assign to places whose "town" place-part contains a non-town string. For these "battle" strings, the County Placelevel makes sense. But you could, instead, specify facility names such as "Church", "Meeting House", "Hospital", etc. and use this field to catch locations that are outside of a town. I just don't happen to have any such facilities in placenames in my database.

  3. a.
    b. What to do with these funky city/town names:


    This option is very similar to the two options above, but it differs in that the Placelevel utility will always mark places that contain these strings as "County".

C. Components of the new placenames

  1. There are two options for 'Text to represent the USA' so that, in a USA-centric database, an administrator can specify something for the USA as a full placename (in the first option), while leaving the second option blank so that more detailed placenames end with the state, omitting 'USA' (however it is spelled). On most TNG sites, both of these options would be the same.
  2. Use Full state name or abbr. for states with a city or county
    This option, like several others, goes back to the days when I preferred more cryptic placenames, and I would express the full placename "Tenessee" when the state name is used without a count or city, but use the state abbreviation in placenames that had subordinate locales, such as Tulsa County, OK.
  3. Again, the presence of two options here goes back to the says when I used more cryptic placenames. With the two options, I could say "County" (or "Co") when it was necessary to avoid ambiguity, e.g. "Dallas Co, TX", and omit the word "County" when the positioning of the County name made it clear that it was a count, e.g. "Dallas, Dallas, TX". Note that, because of the Placename Formatting process, when I decided to use names like "Dallas, Dallas County, Texas, USA" instead of "Dallas, Dallas, TX", I didn't have edit any placename in my source database. Instead, I only had to change the option value in the Gedcom Converter.

    I suspect that almost all sites will use the value "County, Parish" for both fields.

  4. Change 'Ward nn' in city names (e.g. 'Tucson Ward 7,Puma,AZ') as follows:



    USA censuses sometimes insert a ward number in city or town names. As with the "Funky" town names above, the ward number interfered with Geoding and makes it harder to list all of the events that occur within a city. But unlike the Funky towns (1970's reference intended :-)), the ward number does not take up an entire place-part - until or unless you use one of the action options above to separate it into its own place-part.
  5. Omit spaces after commas in placenames (Chicago,Cook,IL and Bethel Cemetery,,,Tennessee,USA)
    Some TNG administrators prefer placenames without spaces after the commas, and this option accommodates that format.