In practice
Common sizes include 3/4-16 UNF, M20×1.5, M27×2 and 1-12 UN. Diameter alone is not enough — two filters can share a diameter and differ in pitch, and forcing one on strips the thread or leaves it loose. Thread is the first thing to verify when a cross-reference looks right but the filter will not seat.