<prompt> Translate the following text to SwahiliTo counter a perceived communist threat from the Soviet Union, the US quickly set to work reconstructing the economy by transforming Japans institutions and devising a new pacifist constitution.  <response>: Ili kukabiliana na tishio la kikomunisti kutoka kwa Muungano wa Sovieti, Marekani ilianza haraka kazi ya kujenga upya uchumi kwa kubadilisha taasisi za Japani na kubuni katiba mpya ya amani. 