Free-text, grammar-based, filtering of AIS messages