Yaw dampeners used to be simple fluid dynamic "computers" (either pneumatic or hydraulic*) tuned to counter the airplane's natural period. Today on big jets they're probably just a chip or two on the FBW system.
* Analogous to the hydromechanical engine fuel control of past decades...