gedcom_matcher 0.2.0 copy "gedcom_matcher: ^0.2.0" to clipboard
gedcom_matcher: ^0.2.0 copied to clipboard

A configurable CLI to compare two GEDCOM files and detect likely person matches.

example/gedcom_matcher_example.dart

import 'package:gedcom_matcher/gedcom_matcher.dart';

void main() {
  const parser = GedcomParser();
  const matcher = GedcomMatcher();
  const formatter = MatchOutputFormatter();

  const leftGedcom = '''
0 @I1@ INDI
1 NAME Jean /Dupont/
1 SEX M
1 BIRT
2 DATE 12 JAN 1900
2 PLAC Paris
0 TRLR
''';

  const rightGedcom = '''
0 @I2@ INDI
1 NAME Jehan /Dupont/
1 SEX M
1 BIRT
2 DATE 12 JAN 1900
2 PLAC Paris
0 TRLR
''';

  final leftPeople = parser.parse(leftGedcom);
  final rightPeople = parser.parse(rightGedcom);
  final results = matcher.match(
    leftPeople: leftPeople,
    rightPeople: rightPeople,
    options: const MatchOptions(minConfidence: 70),
  );

  print(formatter.format(results, OutputFormat.table, useColor: false));
}
1
likes
160
points
153
downloads

Documentation

API reference

Publisher

verified publisherages-app.com

Weekly Downloads

A configurable CLI to compare two GEDCOM files and detect likely person matches.

Repository (GitHub)
View/report issues

Topics

#gedcom #genealogy #cli #matching

License

BSD-3-Clause (license)

Dependencies

args, gedcom_parser

More

Packages that depend on gedcom_matcher