Cut the chicken into bite-sized pieces.
Slice the onion thinly.
Crack the eggs into a bowl and beat them lightly.
In a pan, add soy sauce, mirin, sugar, and water, then simmer the onion and chicken together.
When the chicken is cooked through, pour in the beaten eggs.
When the eggs are half-cooked, turn off the heat and serve over rice.