Compute the dedup suffix by comparing the resolved analysis directory basename with the original slug. Examples:
('breaking', 'breaking-2')
'-2'
('breaking', 'breaking')
''
('breaking-run6', 'breaking-run6-2')
'-run6-2'
Article type strings to derive the base slug
Optional
Resolved analysis directory basename (may include suffix)
Validated dedup suffix string (empty when no suffix applies)
Compute the dedup suffix by comparing the resolved analysis directory basename with the original slug. Examples:
('breaking', 'breaking-2')→'-2'('breaking', 'breaking')→''('breaking-run6', 'breaking-run6-2')→'-run6-2'