Therefore, we introduce a parameterized idiom detector, which is used for detecting the boundary between literal and idiomatic meanings.
if a compositional interpretation is nonsensical in the context of a sentence, then the detector is supposed to check whether an idiomatic sense should be taken and whether it makes sense.