We duplicated this algorithm but replaced inputs with (summary, text), parents and their respective children in the hierarchical domain tree.
for example, the summary is a monthly article when the text is a weekly article or a weekly article when the text is a daily one.