rewrite analyse_tags script + Extractor class