Rule based machine translation framework define in java