This website is a testbed and demonstration page for BML, the Bubblescript Matching Language. Read the documentation.


BML

Sentence

Matches? YES

Captures

VariableTokens
name
george baker spacy person and I

Query AST

[
  {:any, [], [repeat: {0, :infinity, :nongreedy}]},
  {:or,
   [
     [
       {:word, "my", []},
       {:word, "name", []},
       {:word, "is", []}
     ],
     [
       {:word, "i", []},
       {:word, "am", []},
       {:word, "called", []}
     ]
   ], []},
  {:any, [],
   [assign: "name", repeat: {1, 3, :greedy}]}
]
      

Sentence 1

My name is george baker spacy person and I live in Amsterdam spacy gpe
My name is george baker and I live in Amsterdam