mail-query 0.1.0

Parser and typed AST for Gmail-style email search queries. Backend-agnostic.
Documentation
1
2
3
4
5
6
7
8
9
10
11
{
  "name": "phrase-quoted",
  "description": "Quoted phrases are emitted as Phrase, preserving multi-word grouping.",
  "spec": {
    "source": "Gmail search operators",
    "url": "https://support.google.com/mail/answer/7190",
    "behavior": "Double-quoted strings are atomic search phrases; tokens inside the quotes are not individually rewritten by stemmers or stop-word filters."
  },
  "input": "\"deployment plan\"",
  "expected_ast": { "Phrase": "deployment plan" }
}