sentences: "Advised by the "emperegilados", Leonor assumed the regency in the name of her daughter, recently married to the Castilian king, following the terms of the marriage contract of Beatrice and King John I, under which it was stipulated that at the death of the king of Portugal, the dowager queen would be the regent and governor of the kingdom.