This page updated 17 Jan 2008
Version note: Applies to TMG 6 & 7
Sentence variables are used in Sentence Structures of tags to specify how the various data fields in that tag will be assembled into text for narrative reports. My article on Modifying Tag Sentence Structures describes how to apply these variables. The Event Tag variables can also be used in Memo fields. See my articles on an Expanded Census Tag and A Customized Will Tag for examples of this usage.
The following tables list all the available variables and describe their uses. The variables may be typed into the fields, but it is generally simpler to select them from the right-click menus in the Memo and Sentence Structure fields.
Definition of the following terms may be helpful in understanding the tables:
| Current Principal | When a narrative report is created, each paragraph has a "focus" person - the one the report is about. When a tag has two principals, and the report paragraph is about one of them, the Current Principal is the one who is the focus of the paragraph. |
| Other Principal | The Principal that is not the focus of the report paragraph. |
| First Principal | The Principal listed first on the Tag Entry screen. |
| Second Principal | The Principal listed second on the Tag Entry screen. |
| Current Witness | The Witness who is the focus of the report paragraph. |
| Other Witnesses | Any Witness who is not the focus of the report paragraph. |
| Substituted Pronoun | Some name variables substitute the pronoun "he" or "she" instead of giving the name, to avoid excessive repetition of the name in the text. The pronoun is used for sentences after the first in a paragraph, with certain exceptions. |
| Rolename | The name of a Role, such as "Minister," "Heir," or even the standard Roles like "Principal" or Witness." |
Name Variables produce the names of people
|
Variable |
Result |
Example |
| Principals - variables that refer to persons entered in a tag as Principals | ||
|
[P] |
Current Principal's full name, or a substituted pronoun | Mary Jane Smith, or She |
|
[P+] |
Current Principal's full name | Mary Jane Smith |
|
[PG] |
Current Principal's given name | Mary Jane |
|
[PF] |
Current Principal, first word of given name | Mary |
|
[PS] |
Current Principal, possessive name | Mary Jane Smith's |
|
[PGS] |
Current Principal, possessive given name | Mary Jane's |
|
[PFS] |
Current Principal, possessive first word of given name | Mary's |
|
[PO] |
Other Principal's full name | John Edward Black |
|
[POG] |
Other Principal's given name | John Edward |
|
[POF] |
Other Principal, first word of given name | John |
|
[POS] |
Other Principal, possessive name | John Edward Black's |
|
[POGS] |
Other Principal, possessive given name | John Edward's |
|
[POFS] |
Other Principal, possessive first word of given name | John's |
|
[P1] |
First Principal's full name | Mary Jane Smith |
|
[P1G] |
First Principal's given name | Mary Jane |
|
[P1F] |
First Principal, first word of given name | Mary |
|
[P1S] |
First Principal, possessive name | Mary Jane Smith's |
|
[P1GS] |
First Principal, possessive given name | Mary Jane's |
|
[P1FS] |
First Principal, possessive first word of given name | Mary's |
|
[P2] |
Second Principal's full name | John Edward Black |
|
[P2G] |
Second Principal's given name | John Edward |
|
[P2F] |
Second Principal, first word of given name | John |
|
[P2S] |
Second Principal, possessive name | John Edward Black's |
|
[P2GS] |
Second Principal, possessive given name | John Edward's |
|
[P2FS] |
Second Principal, possessive first word of given name | John's |
| Witnesses - variables that refer to persons entered in a tag as Witnesses | ||
|
[W] |
Current Witness' name, or a substituted pronoun | Tom Jones, or He |
|
[W+] |
Current Witness' name | Tom Jones |
|
[WO] |
Other Witnesses' name(s) | May Jones, Sue Jones, and Fred Jones |
| Roles - variables that refer to persons, entered either as Principals or as Witnesses, by Role | |||||
|
[R:Rolename] |
Full name of the person(s) in the role, or a substituted pronoun | John Edward Black, or He, or May Ellen Jones, Sue Mary Jones, and Fred Adam Jones | |||
|
[R+:Rolename] |
Full name of the person(s) in the role | John Edward Black, or May Ellen Jones, Sue Mary Jones, and Fred Adam Jones | |||
|
[RG:Rolename] |
Given name of the person(s) in the role | John Edward, or May Ellen, Sue Mary, and Fred Adam | |||
|
[RF:Rolename] |
First name of the person(s) in the role | John, or May, Sue, and Fred | |||
|
|||||
Parents Variables create the name of a person's parents.
|
Variable |
Result |
Example |
|||
|
[PAR] |
Current Principal's Parents | , son of Tom Jones and Mary Smith | |||
|
[PARO] |
Other Principal's Parents | , daughter of Robert White and Martha Royal | |||
|
[PAR1] |
First Principal's Parents names | , son of Tom Jones and Mary Smith | |||
|
[PAR2] |
Second Principal's Parents names | , daughter of Robert White and Martha Royal | |||
|
[FATH] |
Father of the current principal | Tom Jones | |||
|
[MOTH] |
Mother of the current principal | Mary Smith | |||
|
[FATHO] |
Father of the other principal | Robert White | |||
|
[MOTHO] |
Mother of the other principal | Martha Royal | |||
| [RPAR:Rolename] | Parents of person in the role | , son of Tom Jones and Mary Smith | |||
|
|||||
Pronoun Variables produce pronouns for people.
|
Variable |
Result |
Example |
|
[PP] |
Possessive pronoun for the current principal | His, or Her |
|
[OBJ] |
Objective pronoun for the current principal | Him, or Her |
|
[RP:Rolename] |
Nominative pronoun for the person(s) in the role | He, She, or They |
|
[RS:Rolename] |
Possessive pronoun for the person(s) in the role | His, Her, or Their |
|
[RM:Rolename] |
Objective pronoun for the person(s) in the role | Him, Her, or Them |
Date Variables refer to the date field.
|
Variable |
Result |
Example |
|||
|
[D] |
Date | 2 Feb 1923 | |||
|
[DD] |
Date including the day of the week | Fri. 2 Feb 1923 | |||
|
[Y] |
Year | 1923 | |||
|
|||||
Age Variables produce the ages of people.
|
Variable |
Result |
Example |
|||
|
[A] |
Age of the current principal in years | at age 78 | |||
|
[AE] |
Age of current principal in years, months, and days | at age 78 years, 3 months, 5 days | |||
|
[AO] |
Age of the other principal in years | at age 62 | |||
|
[AOE] |
Age of the other principal in years, months, and days | at age 62 years, 4 months, 12 days | |||
|
[A1] |
Age of the first principal in years | at age 78 | |||
|
[A1E] |
Age of first principal in years, months, and days | at age 78 years, 3 months, 5 days | |||
|
[A2] |
Age of the second principal in years | at age 62 | |||
|
[A2E] |
Age of second principal in years, months, and days | at age 62 years, 4 months, 12 days | |||
|
[RA:Rolename] |
Age of the person(s) in the role in years | at age 78 | |||
|
[RE:Rolename] |
Age of the person(s) in the role in years, months, and days | at age 78 years, 3 months, 5 days | |||
|
|||||
Location Variables refer to the location fields.
|
Variable |
Result |
|||
|
[L] |
Place data (all fields, as specified by Place Style or report options) |
|||
|
[L1] or [LA] or [ADDRESSEE] |
Addressee field | |||
|
[L2] or [LD] or [DETAIL] |
Detail field | |||
|
[L3] or [LCI] or [CITY] |
City field | |||
|
[L4] or [LCN] or [COUNTY] |
County field | |||
|
[L5] or [LS] or [STATE] |
State field | |||
|
[L6] or [LCR] or [COUNTRY] |
Country field | |||
|
[L7] or [LZ] or [ZIP] |
Postal Code field | |||
|
[L8] or [LL] or [LATLONG] |
Latitude - Longitude field | |||
|
[L9] or [LP] or [PHONE] |
Telephone field | |||
|
[L10] or [LT] or [TEMPLE] |
Temple field | |||
|
||||
Memo Variables refer to Memo fields
|
Variable |
Result |
|||
|
[M] |
The Memo field | |||
|
[M1]...[M9] |
Segments of a split Memo | |||
|
[WM] |
The Witness Memo field | |||
|
[WM1]...[WM9] |
Segments of a split Witness Memo | |||
|
<[M0]> |
Forces a Memo field to not print | |||
|
||||
|
Variable |
Result |
|
[P] |
Current Principal's primary name |
|
[N] |
Name of the current principal in the current tag |
|
[PP] |
Possessive Pronoun for the Current Principal |
|
[OBJ] |
Objective Pronoun for the Current Principal |
|
[D] |
Date |
|
[M] |
The Memo field |
|
[M1]...[M9] |
Segments of a split Memo |
|
<[M0]> |
Forces a Memo field to not print |
There are several special characters used in Sentences to control how the variables are interpreted or otherwise control the output in narratives. They include:
|
Character |
Result |
Example |
|||
|
< > |
Called "Conditional Brackets" - they tell TMG to ignore whatever is inside the brackets if the referenced field is empty. If the brackets are not used, and the referenced field is empty, a term like "an unknown value" will appear in the output. | <with [WO]> | |||
|
|||||
|
| |
Allows different wording when there is a second Principal in the tag. The text before the bar is used if there is only one Principal, and that after is used instead if there is a second Principal. | [P] <was|and [PO] were> | |||
|
|| |
Allows for different Sentences to be used if the focus person his living or not, as marked with the Living Flag (values of Y and ? are considered living). The part before the double bars is used if the person is not living, and the part afterwards if they are. | [P] was living <[L]>||[P] is living <[L]> | |||
|
|||||
| The following codes are not available in Version 5: | |||||
|
\ |
Allows characters that have special meaning to TMG, such as the three listed above, -, [, ], {, }, or \, to be interpreted as ordinary text and be output as entered. | \- [M] | |||
|
|||||
|
[+] |
Joins the output of one Tag to that of the preceding one. | [+] and was buried <[D]> <[L]> | |||
|
|||||
|
[:NP:] |
Suppresses automatic management of end-of-sentence punctuation. | The following were listed:[:NP:] | |||
|
|||||
|
[:NoBirthPlaces:] |
Suppresses the list of display of birth places in the list of children in a Journal report. | The children of [P] and [PO]<, all born in [L],[:NoBirthPlaces:]> were as follows: | |||
|
|||||
My new book, A Primer for The Master Genealogist, is now available.
Details are available here.
Copyright 2000-2008