Actually, the first patch didn't pay attention to children, if any, of the current headline. Here is a new patch, including feedback from Kyle and Sébastien. Considering the following buffer, "Text" being the matched location * Grandmother ** Uncle *** Heir ** Father *** Sister *** Self Text **** First born Other text **** The other child *** Brother ** Aunt `minimal' is * Grandmother *** Self Text `local' is * Grandmother *** Self Text **** First born `ancestors' is * Grandmother ** Father *** Self Text `lineage' is * Grandmother ** Father *** Sister *** Self Text **** First born *** Brother `canonical' is * Grandmother ** Uncle ** Father *** Sister *** Self Text **** First born **** The other child *** Brother ** Aunt `full' is * Grandmother ** Uncle ** Father *** Sister *** Self Text **** First born Other text **** The other child *** Brother ** Aunt Regards, -- Nicolas Goaziou