| 1 |
/* |
| 2 |
* @progname ttable.ll |
| 3 |
* @version none |
| 4 |
* @author anon |
| 5 |
* @category |
| 6 |
* @output Text |
| 7 |
* @description |
| 8 |
* |
| 9 |
* Compute Pete Cook's C-Table comparison vector, as modified by Tom. |
| 10 |
* |
| 11 |
* What is this? From l-lines list 10 Aug 1995 posting by Tom Wetmore: |
| 12 |
* |
| 13 |
* There has been discussion on person matching in genealogical databases, |
| 14 |
* the use of metrics to compare persons to help locate duplicates. |
| 15 |
* |
| 16 |
* Pete Cook suggested the CID metric a ways back, and recently suggested the |
| 17 |
* CTable metric. I remember another metric published in "Genealogical |
| 18 |
* Computing" some time back. John Chandler (?) reminded us of a metric that |
| 19 |
* is used by the Genserve project (which, by my own experience) works quite |
| 20 |
* well. |
| 21 |
* above 2 paragraphs inserted by Stephen Dum |
| 22 |
*/ |
| 23 |
|
| 24 |
proc main () |
| 25 |
{ |
| 26 |
getindi(i, "Compute C-Table for what person?") |
| 27 |
if (not(i)) { return() } |
| 28 |
set(b, getyear(birth(i))) |
| 29 |
set(f, father(i)) set(m, mother(i)) |
| 30 |
set(ff, father(f)) set(fm, mother(f)) |
| 31 |
set(mf, father(m)) set(mm, mother(m)) |
| 32 |
set(bf, getyear(birth(f))) set(bm, getyear(birth(m))) |
| 33 |
set(bff, getyear(birth(ff))) set(bfm, getyear(birth(fm))) |
| 34 |
set(bmf, getyear(birth(mf))) set(bmm, getyear(birth(mm))) |
| 35 |
print( b, " ", bf, " ", bm, " ") |
| 36 |
print(bff, " ", bfm, " ", bmf, " ", bmm, " ") |
| 37 |
print(sex(i), " ", soundex(i), " ", trim(givens(i), 1), "\n") |
| 38 |
} |
| 39 |
func getyear(event) |
| 40 |
{ |
| 41 |
set(y, atoi(year(event))) |
| 42 |
if (and(ge(y, 1000), le(y, 2000))) {return(year(event))} |
| 43 |
return("0000") |
| 44 |
} |