, but I think that at least this requirement is not fully thought through
Thanks for pointing that out! You’re right. While composing the post, I was uncertain whether to include the term “type” in the name at all.
“counterpart” and “subject”.
Seems to be “enough”.
But all that requires some kind of regularity in the documents. You could, for example, define a list of companies and tags for those.
Based on other posts you wrote, I build this script: