Extraction programs: a unified approach to translation rule extraction