Before AI comment analysis: audit repeated IDs instead of silently deleting rows
I work on AI TikTok Analyzer Pro / 达人精灵, which includes comment-analysis workflows. I prepared this post and the small audit example with AI assistance. This is a data-preparation discussion, not a customer result or an independent product review.
Before passing an export to an AI summarizer, I want to distinguish repeated observations from conflicting records. Dropping every repeated comment_id can conceal a disagreement in the source data. Deduplicating on text can also combine unrelated comments that happen to say the same thing.
The example audits the exact string tuple [platform, video_id, comment_id] and puts rows into three buckets:
- One row for an observed identity.
- Repeated identity with identical text: a candidate duplicate, still requiring review of timestamps and other fields.
- Repeated identity with conflicting text: unresolved, with neither version discarded.
Missing or invalid identifiers are counted separately. IDs stay strings; the script cannot repair an ID already rounded by a spreadsheet. It makes no claim that this tuple is a universal identifier for every platform.
The runnable Node.js demo has 8 synthetic rows: 1 invalid row and 7 valid rows across 5 observed identity groups. The valid rows reconcile as 3 single-row identities + 2 same-text rows in one group + 2 conflicting-text rows in one group. These are teaching records, not TikTok customer data or traffic figures.
The script only prints aggregate counts. It does not scrape, call an AI service, delete records, or decide which version is correct. It loads the array into memory, so it is a small teaching example rather than a large-file processing pipeline. The linked report template is a separate worked example, not the output of this audit.
For people building AI research tools: when the same identity arrives with changed text, do you keep both observations with collection times, or resolve the version before summarization? What evidence would you require before treating an identical-text repeat as safe to remove?