/**
* TiCi
* Compare your cross-tab files, whatever their source and format.
* A real example: a cross-tabulation checked against frequency tables.
*/
function principle() {
// Two files, two formats, one check
Got the same results produced by two different tools? TiCi checks them against each other automatically and returns the file annotated: a match score for every table and every category, differences highlighted in colour, and a summary.
TiCi: [
- "finds the matching tables, even when their titles differ",
- "pairs up categories and compares counts",
- "recognises a multiple-choice question split across several tables",
- "flags anything that has no match",
],
}
function example() {
// File A: cross-tabulation · File B: frequency tables
// Data from a French survey, so the labels stay in French
const differentTitles = {
// Same question, different title
File A calls it “s1a Fréquence des trajets”, while file B uses the full question wording. TiCi pairs the two tables (title score: 0.56) and checks the content: every category matches (table score: 1). File A's subtotals (ST), which file B doesn't have, are simply set aside.
| Category | File A | File B | Score |
|---|---|---|---|
| ST Fréquent | 68 | – | – |
| ST Occasionnel | 81 | – | – |
| Tous les jours ou presque | 37 | 37 | 1 ✓ |
| 3 ou 4 jours par semaine | 31 | 31 | 1 ✓ |
| 1 ou 2 jours par semaine | 47 | 47 | 1 ✓ |
| 2 ou 3 jours par mois | 26 | 26 | 1 ✓ |
| 1 jour par mois environ | 8 | 8 | 1 ✓ |
| Moins souvent | 11 | 11 | 1 ✓ |
| Une seule fois | 2 | 2 | 1 ✓ |
| Jamais | 21 | 21 | 1 ✓ |
};
const multipleChoice = {
// One question in A, seven tables in B
In file A, the multiple-choice question fits in a single table. In file B, each answer has its own “Yes / No” table. TiCi finds all seven tables and compares the counts.
| Category in A | File A | Table in B | File B (Yes) | Score |
|---|---|---|---|---|
| Via le site Internet A | 27 | 40 · 01 = Via le site Internet A | 27 | 0.98 ✓ |
| Via l'application A | 55 | 41 · 02 = Via l'application A | 55 | 0.98 ✓ |
| Via le site Internet B | 2 | 43 · 03 = Via le site Internet B | 2 | 0.98 ✓ |
| Via l'application B | 2 | 44 · 04 = Via l'application B | 2 | 0.98 ✓ |
| Via le site Internet C | 5 | 45 · 05 = Via le site Internet C | 5 | 0.98 ✓ |
| Via l'application C | 26 | 46 · 06 = Via l'application C | 26 | 0.98 ✓ |
| Via l'application D | 20 | 47 · 07 = Via l'application D | 20 | 0.98 ✓ |
};
const summary = {
// The summary sheet added by TiCi
Every table gets a score. Orange marks what deserves a quick look: here, the titles of the seven multiple-choice tables have no equivalent in file A, yet their content matches (score 0.98).
| No. | Title in B | Table score | Title score | Matching table in A |
|---|---|---|---|---|
| 1 | Fiche profil | 1 | 0.98 | i8 Fiche profil |
| 3 | Carnet de bord rempli | 1 | 0.98 | i4 Carnet de bord rempli |
| 4 | carnet de bord BUS rempli | 1 | 0.98 | i5 carnet de bord BUS rempli |
| 33 | Au cours des douze derniers mois… – Le Bus | 1 | 0.56 | s1a Fréquence des trajets Le Bus |
| 40–47 | Comment préparez-vous vos trajets… ? (7 tables) | 0.98 | 0 | no matching title |
};
}
function contact() {
// Want to try TiCi on your own files?
// Your contact at Wakuroo:
return { name: "Gilles Morillon", email: "contact@wakuroo.com" };
}