I want to say
I almost made the mistake.
Is it correct to say
Ich habe den Fehler fast gemacht.
I'm not sure about the adverb "fast" here, since it is modifying the verb "gemacht" (as opposed to an adjective.)
German Language Stack Exchange is a bilingual question and answer site for speakers of all levels who want to share and increase their knowledge of the German language. It's 100% free, no registration required.Sign up to join this community
A synonymous alternative to fast is using beinahe here:
Ich hätte beinahe den Fehler gemacht, einen Kommentar zu schreiben, anstatt zu antworten.
Note that if you use the definitve article here, we do expect a further precision of the nature of the mistake in a following subordinate clause. In case the sentence stands alone it is better to use an indefinite article:
Ich hätte beinahe/fast einen Fehler gemacht.