Fix grammar to accept accents and other query complexities