I remember there is a boolean property called
IsWeapon on a type which represents a tooltip. I guess that is what you mean.
I search the Sanderling repository on github for the string
Using this textsearch yields several results, one of them is this:
I guess this is the assignment where the decision is made for the given tooltip whether it is considered a weapon.