Particle physics

What determines how a matter field couples to a gauge field?