Skip to content
Coding Script or NotebookGoogle ColabFree

Multilingual Search Intent Classifier: Regex Filters per Market

ForSearch intentKeyword research

By Lazarina Stoy· Updated 5 Dec 2026

Translating every keyword before you classify it is slow, and it loses the local wording that decides intent. This free Google Colab notebook takes the opposite route: you translate and localise a small set of intent filter words once per language, then classify keyword exports from every market with the same rules. It is the companion code to my guide on intent-driven international keyword research, first given as a talk at the International Search Summit in Barcelona in 2021 and refreshed in October 2026.

Who it’s for

International SEOs, agencies with multi-market clients and in-house teams who need a consistent search intent split across markets. There are no API keys and no paid tools: it only needs pandas.

How to use it

  1. Open the notebook in Colab and run it on the built-in example set.
  2. Load your keyword export with keyword, market, language and, optionally, volume columns. Any keyword tool works once the columns are renamed.
  3. Review the starter filters, add market extras such as UK and US wording, and pick an industry preset (e-commerce, SaaS or services) and your brand terms.
  4. Run the classifier and read the intent split per market.
  5. Check the unclassified gaps and the language traps, then extend your filters.
  6. Optionally add a Search Console export by country to compare intent for the same page’s queries across markets.

What you get

  • A primary intent per keyword by priority, plus every category it matched, using accent- and case-insensitive whole-word matching
  • The share of search volume by intent for each market
  • Coverage per market and the most frequent words in unclassified keywords, so you know what to add next
  • Flags for false friends and homographs (German “Gift” is the classic) and for brand names that are everyday words in a market
  • keywords_with_intent.csv and intent_regex_per_market.csv, with RE2 patterns you can paste into Data Studio REGEXP_MATCH or Google Sheets REGEXMATCH

Limits

Rule-based search intent classification is only as good as its dictionaries. The starter filters are a starting point, so have a native speaker or localisation specialist review each market before you rely on the split. Keywords with no intent words stay unclassified by design, which is more honest than a forced guess, and the gap report shows you which words to add. It works for a single market too: the gap report alone is a quick way to see which intent words your keyword set is missing.

The methods behind it, from rules to SERP-based and machine learning classifiers, are covered in Semantic AI-powered SEO Keyword Research.

What’s included

  • Classify search intent across markets without translating every keyword
  • Starter filters for English, Spanish, German and French, plus market and industry extras
  • Intent split by search volume per market, and the words your filters are missing
  • Flags false friends and brand names that are everyday words in a market
  • Exports RE2 regex per market for Data Studio and Google Sheets; no API keys