{
 "version": 1,
 "as_of": "2026-11-10",
 "permits": {
  "source": "City of Portland permit records, PortlandMaps permit search",
  "source_url": "https://www.portlandmaps.com/advanced/?action=permits",
  "window_months": 24,
  "counting_rule": "A permit record counts for a business when its type is 'One or Two Family', its status is not VOID, it was issued in the 24 months that end on the counting date, and its CCB contractor number equals the business's CCB license number.",
  "electrical_jobs": {
   "version": "portlandmaps-description-categories-2026-11-10-r5",
   "definitions": {
    "panel-upgrades": "Explicit panel/subpanel installation, replacement, alteration, relocation or electrical-service/meter-main change; not panel components or location alone.",
    "ev-chargers": "Explicit road-vehicle charging equipment, dedicated circuit, outlet or charging power. Industrial tug/forklift and generic battery chargers are outside this job scope.",
    "rewiring": "Explicit existing electrical wiring renewal, rewire or old-wiring removal/replacement; not all-new building/addition wiring alone."
   },
   "rule": "A fixed rule set reads the permit description. A record counts for a job only when the description names that work explicitly. The full rule code is in source_code.",
   "source_code": "\"\"\"Permit category candidate2, from disjoint tuning descriptions only.\n\nPublic permit scope is not customer sentiment, completed work, or unique jobs.\nThis module has no file, review, provider or model access.\n\"\"\"\nimport re\nimport unicodedata\n\nVERSION = \"portlandmaps-description-categories-2026-11-10-r5\"\nTAXONOMY = {\n    \"panel-upgrades\": \"Explicit panel/subpanel installation, replacement, alteration, relocation or electrical-service/meter-main change; not panel components or location alone.\",\n    \"ev-chargers\": \"Explicit road-vehicle charging equipment, dedicated circuit, outlet or charging power. Industrial tug/forklift and generic battery chargers are outside this job scope.\",\n    \"rewiring\": \"Explicit existing electrical wiring renewal, rewire or old-wiring removal/replacement; not all-new building/addition wiring alone.\",\n}\nACTION = r\"(?:new|add(?:ed|ing)?|(?:re\\s*)?install(?:ed|ing|ation)?|provid(?:e[ds]?|ing)|alter(?:ed|ing|ation)?|replac(?:e[ds]?|ing|ement)|upgrad(?:e[ds]?|ing)|chang(?:e[ds]?|ing)(?:\\s*out)?|updat(?:e[ds]?|ing)|relocat(?:e[ds]?|ing|ion)|mov(?:e[ds]?|ing)|swapp?(?:ed|ing)?|redo|redid|redone|convert(?:ed|ing|s)?|conversion)\"\nMODIFIER = r\"(?:a|an|the|of|to|with|and|or|existing|old|new|main|service|electrical|electric|power|distribution|breaker|fuse|outdoor|rated|single|three|phase|double|twin|pack|meter|metered|meters|base|socket|upgraded|style|temp|temporary|amp|amps|ampere|amperes|volt|volts|continuous|overhead|underground|oh|ug|rv|manufactured|home|house|generator|dated|damage|damaged|zinsco|federal|pacific|one|two|three|being|\\d+(?:a|amp|amps|v|phase)?)\"\nBRIDGE = rf\"(?:{MODIFIER}\\s+){{0,14}}\"\nPANEL = r\"(?:sub\\s*panels?|panels?|panelboards?|breaker\\s*box(?:es)?|fuse\\s*box(?:es)?|load\\s*cent(?:er|re)s?)\"\nSERVICE = r\"(?:services?|meter\\s*mains?|meters?(?:\\s+(?:pack|base|socket))?)\"\nPATTERNS = [\n    re.compile(rf\"\\b{ACTION}\\s+{BRIDGE}{PANEL}\\b\"),\n    re.compile(rf\"\\b{PANEL}\\s+(?:(?:amp|amps|main|service|electrical|\\d+a?)\\s+){{0,4}}{ACTION}\\b\"),\n    re.compile(rf\"\\b{ACTION}\\s+{BRIDGE}{SERVICE}\\b\"),\n    re.compile(rf\"\\b(?:electrical\\s+)?{SERVICE}\\s+(?:change(?:out)?|replacement|upgrade|relocation|conversion|installation|installed)\\b\"),\n    re.compile(rf\"\\b{PANEL}\\s+(?:being\\s+)?(?:relocated|moved|replaced|upgraded|installed)\\b\"),\n    re.compile(rf\"\\b{ACTION}\\s+(?:existing\\s+)?\\d+\\s+circuit\\s+(?:zinsco\\s+)?{PANEL}\\b\"),\n]\nNON_DISTRIBUTION = re.compile(r\"\\b(?:fire\\s+alarm|control|solar|patch|data|security|lighting\\s+control)\\s+panel\\b\")\nCOMPONENT_SUFFIX = re.compile(r\"^\\s+(?:cover|door|label|latch|screw|breaker|circuit|hinge|handle|outlet|receptacle|feeder|wire|conductors?)\\b\")\nNEGATION = re.compile(r\"\\b(?:no|not|without)\\b[^.;\\n]{0,25}$\")\nEV = re.compile(r\"\\b(?:ev\\s+(?:charg\\w*|circuits?|outlets?|power|receptacles?|plugs?)|electric\\s+vehicles?|(?:car|vehicle|tesla)\\s+(?:fast\\s+)?charg\\w*|level\\s*2\\s+charg\\w*|wall\\s+connectors?|(?:outlet|circuit|receptacle|plug)\\s+for\\s+(?:an?\\s+)?ev)\\b\")\nREWIRE = re.compile(r\"\\bre\\s*wir(?:e[ds]?|ing)\\b\")\nOLD_WIRING = re.compile(r\"\\b(?:(?:k?nob)\\s*(?:and|&)\\s*tube|alumin(?:um|ium)\\s+wiring)\\b\")\nRENEWAL = re.compile(r\"\\b(?:remov(?:e[ds]?|ing|al)|replac(?:e[ds]?|ing|ement)|abatement|abate|demo(?:lish)?|upgrad(?:e[ds]?|ing))\\b\")\nWIRE_MODIFIER = r\"(?:the|a|an|of|our|existing|old|ungrounded|damaged|all|some|furnace|kitchen|bathroom|oven|heater|heating|hvac|branch|two|wire|2|120v|240v|volt|amp|amps|underground|overhead|copper|aluminum|\\d+(?:a|v|amp|amps)?)\"\nEXISTING_REPLACEMENT = re.compile(rf\"\\b(?:replac(?:e[ds]?|ing|ement)|remov(?:e[ds]?|ing|al)|upgrad(?:e[ds]?|ing))\\s+(?:{WIRE_MODIFIER}\\s+){{0,12}}(?:wir(?:e|es|ing)|circuits?|cable)\\b\")\n\n\ndef normalized(description):\n    text = unicodedata.normalize(\"NFKC\", description).lower()\n    # Preserve clause boundaries; turn nonstandard amp separators and hyphens\n    # into spaces. Permit scope often uses slashes and compact numeric units.\n    text = re.sub(r\"[¿/\\-‐‑‒–—(),:]\", \" \", text)\n    return re.sub(r\"[ \\t]+\", \" \", text)\n\n\ndef _not_negated(text, start):\n    return not NEGATION.search(text[max(0, start-40):start])\n\n\ndef classify_permit(description):\n    text = normalized(description)\n    found = set()\n    for pattern in PATTERNS:\n        for match in pattern.finditer(text):\n            if not _not_negated(text, match.start()):\n                continue\n            target = match.group()\n            # An action on a component is not an action on a nearby panel.\n            # Apply this only when the match begins with the action, so the\n            # legitimate noun phrase 'breaker panel replacement' is retained.\n            if re.match(rf\"{ACTION}\\b\", target) and re.search(r\"\\b(?:breaker|outlet|receptacle|cover|door|latch)\\s*$\", text[max(0,match.start()-25):match.start()]):\n                continue\n            if NON_DISTRIBUTION.search(target):\n                continue\n            if COMPONENT_SUFFIX.search(text[match.end():]):\n                continue\n            # Generic utility-service repair/reconnection and location-only\n            # references do not match the action/target patterns above.\n            found.add(\"panel-upgrades\")\n    # Whole-installation descriptions can list amperage services later in the\n    # same description. This context is restricted to explicit installation\n    # of new electrical/building work, not any nearby new circuit.\n    if re.search(r\"\\b(?:install\\w*\\s+new\\s+electrical\\s+for\\s+new\\s+building|electrical\\s+install\\w*\\s+for\\s+buildout)\\b\", text) and re.search(r\"\\b\\d+\\s*(?:a|amp|amps)\\b.{0,30}\\bservices?\\b\", text) and not re.search(r\"\\bexisting\\s+(?:electrical\\s+)?service\\b\", text):\n        found.add(\"panel-upgrades\")\n    for match in EV.finditer(text):\n        if _not_negated(text, match.start()):\n            found.add(\"ev-chargers\")\n    # For wiring, retain commas as scope boundaries. A service upgrade followed\n    # by a comma and new circuits is not an upgrade of those circuits.\n    wire_text = normalized(description.replace(\",\", \";\"))\n    clauses = re.split(r\"[.;\\n]+\", wire_text)\n    for clause in clauses:\n        for match in REWIRE.finditer(clause):\n            if not _not_negated(clause, match.start()):\n                continue\n            if re.search(r\"\\b(?:all\\s+new|new\\s+construction|newly\\s+constructed)\\b\", clause) and not re.search(r\"\\b(?:existing|old|replace|replacement)\\b\", clause):\n                continue\n            if re.search(r\"\\b(?:low\\s+voltage|audio|telecom|network|data|fiber|cctv)\\b\", clause) and not re.search(r\"\\b(?:electrical|power|house|home|kitchen)\\b\", clause):\n                continue\n            found.add(\"rewiring\")\n        if OLD_WIRING.search(clause) and RENEWAL.search(clause):\n            old = OLD_WIRING.search(clause)\n            if _not_negated(clause, old.start()):\n                found.add(\"rewiring\")\n        for match in EXISTING_REPLACEMENT.finditer(clause):\n            if not _not_negated(clause, match.start()):\n                continue\n            if re.search(r\"^\\s+(?:breakers?\\b|(?:(?:zinsco|federal\\s+pacific|electrical|main)\\s+)?panels?\\b)\", clause[match.end():]):\n                continue\n            found.add(\"rewiring\")\n        whole = re.search(r\"\\b(?:new|complete)\\b.{0,40}\\bwiring\\s+throughout\\s+(?:(?:the|an?|existing|single|family)\\s+){0,6}(?:residence|house|home)\\b\", clause)\n        if whole and \"existing\" in whole.group() and _not_negated(clause, whole.start()):\n            found.add(\"rewiring\")\n    return [key for key in TAXONOMY if key in found]\n",
   "heating_cooling_pattern": "heat\\s*pump|\\bhp\\b|furnace|\\ba/?c\\b|air\\s*cond|mini[\\s-]*split|ductless|hvac|condens|air\\s*handler|water\\s*heater|\\bhpwh\\b",
   "exclusions": [
    "A record whose description matches heating_cooling_pattern (heat pump, furnace, air conditioning, mini-split, condenser, air handler, water heater and similar) and names no panel, service, rewiring, charger, circuit, outlet or lighting work is not counted for an electrician.",
    "A record that names heating or cooling equipment is never counted as rewiring."
   ]
  },
  "trade_scopes": {
   "plumbers": {
    "permit_index": "plumbing",
    "description_pattern": null,
    "kind": "plumbing"
   },
   "water-heaters": {
    "permit_index": "plumbing",
    "description_pattern": "water\\s*heater|\\bw/?h\\b|tankless|\\bhpwh\\b",
    "kind": "water heater"
   },
   "hvac": {
    "permit_index": "mechanical",
    "description_pattern": null,
    "kind": "mechanical"
   },
   "heat-pump-installers": {
    "permit_index": "mechanical",
    "description_pattern": "heat\\s*pump|\\bhp\\b|mini[\\s-]*split|ductless",
    "kind": "heat pump"
   },
   "ev-charger-installation": {
    "permit_index": "electrical",
    "description_pattern": "\\bev\\b|electric vehicle|car charg|vehicle charg|\\bevse\\b|charger|charging station|tesla",
    "kind": "EV charger"
   },
   "solar-installers": {
    "permit_index": "electrical",
    "description_pattern": "solar|photovoltaic|\\bpv\\b",
    "kind": "solar"
   }
  }
 },
 "review_mentions": {
  "counting_rule": "A mention counts when the rule matches the review text and the review has 4 or 5 stars, in the 24 months that end on the counting date. Reviews cover the whole Google listing, not one job.",
  "electrical_jobs": {
   "version": "review-mentions-rules-2026-11-10-rc3",
   "applies_to": [
    "panel-upgrades",
    "ev-chargers",
    "rewiring"
   ],
   "normalization": "Lower case; curly apostrophes and en dashes are made plain.",
   "patterns": {
    "panel-upgrades": [
     "\\b(?:electrical|breaker|service) panel\\b",
     "\\bpanel (?:upgrade|replacement|installation)s?\\b",
     "\\b(?:upgrad\\w*|replac\\w*|install\\w*) (?:\\w+ ){0,3}panels?\\b"
    ],
    "ev-chargers": [
     "\\b(?:ev|electric vehicle|tesla|car) charg(?:er|ers|ing)\\b",
     "\\bwall connector\\b",
     "\\blevel[ -]?2 charg(?:er|ers|ing)\\b"
    ],
    "rewiring": [
     "\\brew(?:ire|ired|iring|ires)\\b",
     "\\bknob[ -]and[ -]tube\\b",
     "\\balumin(?:um|ium) wiring\\b"
    ]
   },
   "validation": {
    "validation_version": "review-validation-2026-11-10-v1",
    "reviews_checked": 300,
    "reviews_labeled_by_a_person": 0,
    "reference": "Each review was labeled a second time by a separate automated reader (not by a person); the rule labels were compared with those reference labels.",
    "samples": "150 random reviews and 150 reviews chosen to contain more likely matches",
    "by_job": {
     "panel-upgrades": {
      "mentions_missed": 12,
      "mentions_wrongly_added": 8
     },
     "ev-chargers": {
      "mentions_missed": 2,
      "mentions_wrongly_added": 1
     },
     "rewiring": {
      "mentions_missed": 5,
      "mentions_wrongly_added": 1
     }
    },
    "accuracy_claim_for_all_reviews": false
   }
  },
  "trade_jobs": {
   "version": "trade-jobs-rules-2026-11-13",
   "rule": "The review pattern is searched in the whole review text of a business on that trade's city list. One review can count for more than one job.",
   "jobs": {
    "water-damage-restoration": {
     "emergency-water-removal": {
      "name": "Emergency water removal and drying",
      "review_pattern": "\\bwater (?:removal|extraction|damage|mitigation)\\b|\\bflood(?:ed|ing|s)?\\b|\\bdehumidif\\w*|\\bdry(?:ing)? (?:out|equipment|fans?)\\b|\\b(?:drying|air) (?:fans?|movers?)\\b",
      "offer_pattern": "\\b(?:emergency )?water (?:removal|extraction|mitigation)\\b|\\bwater damage (?:restoration|cleanup|repair|services?)\\b|\\bflood (?:cleanup|restoration|damage)\\b|\\bstructural drying\\b",
      "permit": null
     },
     "burst-pipe-cleanup": {
      "name": "Burst pipe and leak cleanup",
      "review_pattern": "\\b(?:burst|broken|frozen|busted|leak\\w*) (?:water )?(?:pipes?|lines?)\\b|\\bpipes? (?:burst|broke|froze|leak\\w*)\\b",
      "offer_pattern": "\\bburst pipes?\\b|\\bfrozen pipes?\\b|\\bpipe (?:burst|leak) (?:cleanup|damage|repair)\\b|\\bleak (?:cleanup|damage)\\b",
      "permit": null
     },
     "sewage-backup-cleanup": {
      "name": "Sewage backup cleanup",
      "review_pattern": "\\bsewage\\b|\\bsewer (?:back ?up|backup|overflow)\\b|\\bbacked up\\b.{0,30}\\b(?:toilet|sewer|basement|drain)\\b",
      "offer_pattern": "\\bsewage (?:cleanup|clean-up|backup|removal|restoration)\\b|\\bsewer backup(?: cleanup| restoration)?\\b|\\bcategory 3 water\\b",
      "permit": null
     },
     "fire-smoke-damage": {
      "name": "Fire and smoke damage restoration",
      "review_pattern": "\\bhouse fire\\b|\\bfire damage\\b|\\bsmoke (?:damage|smell|odor)\\b|\\bsoot\\b|\\bafter (?:the|a|our) fire\\b",
      "offer_pattern": "\\bfire (?:and smoke )?(?:damage )?(?:restoration|cleanup|repair)\\b|\\bsmoke (?:damage )?(?:restoration|cleanup|removal)\\b|\\bsoot (?:cleanup|removal)\\b",
      "permit": null
     }
    },
    "mold-remediation": {
     "mold-removal": {
      "name": "Mold removal",
      "review_pattern": "\\bmou?ld\\b|\\bmildew\\b",
      "offer_pattern": "\\bmou?ld (?:removal|remediation|abatement|cleanup|clean-up|treatment)\\b",
      "permit": null
     },
     "mold-inspection-testing": {
      "name": "Mold inspection and testing",
      "review_pattern": "\\bmou?ld (?:inspections?|test\\w*|assessments?|sampl\\w*)\\b|\\bair (?:quality )?(?:test\\w*|sampl\\w*)\\b",
      "offer_pattern": "\\bmou?ld (?:inspections?|testing|tests?|assessments?)\\b|\\bair quality testing\\b",
      "permit": null
     },
     "crawl-space-mold": {
      "name": "Crawl space and attic mold",
      "review_pattern": "\\bcrawl ?spaces?\\b|\\battics?\\b",
      "offer_pattern": "\\b(?:crawl ?space|attic) mou?ld\\b|\\bmou?ld (?:removal |remediation )?in (?:the |your )?(?:crawl ?space|attic)\\b|\\bcrawl ?space (?:mou?ld|remediation|encapsulation)\\b",
      "permit": null
     }
    },
    "plumbers": {
     "water-heater-replacement": {
      "name": "Water heater replacement and repair",
      "review_pattern": "\\b(?:hot )?water heaters?\\b|\\btankless\\b",
      "offer_pattern": "\\bwater heaters? (?:replacement|installation|install|repair|services?)\\b|\\btankless water heaters?\\b",
      "permit": {
       "index": "plumbing",
       "pattern": "water\\s*heater|\\bw/?h\\b|tankless|\\bhpwh\\b"
      }
     },
     "sewer-line-repair": {
      "name": "Sewer line repair",
      "review_pattern": "\\bsewer\\b|\\bmain (?:drain )?line\\b",
      "offer_pattern": "\\bsewer (?:line )?(?:repair|replacement|installation|services?)s?\\b|\\bside sewers?\\b|\\btrenchless (?:sewer\\w*|pipe ?lining|pipelining)\\b",
      "permit": {
       "index": "plumbing",
       "pattern": "sewer"
      }
     },
     "drain-cleaning": {
      "name": "Drain cleaning",
      "review_pattern": "\\bclog(?:ged|s)?\\b|\\bdrains?\\b.{0,40}\\b(?:clean\\w*|snak\\w*|back(?:ed)? up|unclog\\w*)|\\bhydro[- ]?jet\\w*",
      "offer_pattern": "\\bdrain cleaning\\b|\\bhydro[- ]?jetting\\b|\\bclogged drains?\\b|\\bdrain (?:clearing|unclogging)\\b",
      "permit": null
     },
     "repiping": {
      "name": "Repiping",
      "review_pattern": "\\bre-?pip(?:e|ed|ing)\\b|\\bgalvanized\\b|\\bpex\\b",
      "offer_pattern": "\\b(?:whole[- ]house |home )?re-?pip(?:e|ing)\\b",
      "permit": {
       "index": "plumbing",
       "pattern": "re-?pip|whole[\\s-]*(?:house|home) (?:water )?(?:supply|re)|replac\\w* (?:all|entire) (?:\\w+ )?(?:galvani[sz]ed|water (?:supply|piping|lines)|plumbing)"
      }
     }
    },
    "water-heaters": {
     "water-heater-replacement": {
      "name": "Water heater replacement and repair",
      "review_pattern": "\\b(?:hot )?water heaters?\\b",
      "offer_pattern": "\\bwater heaters? (?:replacement|installation|install|repair|services?)\\b",
      "permit": {
       "index": "plumbing",
       "pattern": "water\\s*heater|\\bw/?h\\b|tankless|\\bhpwh\\b"
      }
     },
     "tankless-water-heaters": {
      "name": "Tankless water heater installation",
      "review_pattern": "\\btankless\\b|\\bon[- ]demand\\b",
      "offer_pattern": "\\btankless (?:water heaters?|installation|install)\\b",
      "permit": {
       "index": "plumbing",
       "pattern": "tankless|on[\\s-]*demand|instantaneous"
      }
     }
    },
    "hvac": {
     "furnace-replacement": {
      "name": "Furnace replacement and repair",
      "review_pattern": "\\bfurnaces?\\b",
      "offer_pattern": "\\bfurnaces? (?:replacement|installation|install|repair|services?)\\b|\\bnew furnaces?\\b",
      "permit": {
       "index": "mechanical",
       "pattern": "furnace"
      }
     },
     "heat-pump-installation": {
      "name": "Heat pump installation",
      "review_pattern": "\\bheat pumps?\\b|\\bmini[- ]?splits?\\b|\\bductless\\b",
      "offer_pattern": "\\bheat pumps? (?:installation|install|replacement|services?|systems?)\\b|\\bheat pumps\\b",
      "permit": {
       "index": "mechanical",
       "pattern": "heat\\s*pump|\\bhp\\b|mini[\\s-]*split|ductless"
      }
     },
     "air-conditioning-installation": {
      "name": "Air conditioning installation",
      "review_pattern": "\\bair condition\\w*|\\b(?:a/?c) (?:unit|system|install\\w*|replace\\w*)\\b",
      "offer_pattern": "\\b(?:air condition(?:ing|ers?)|a/?c) (?:installation|install|replacement|services?|repair)\\b|\\bcentral air (?:conditioning )?(?:installation|install|replacement|systems?)\\b",
      "permit": {
       "index": "mechanical",
       "pattern": "air\\s*condition|\\ba/?c\\b|condens"
      }
     }
    },
    "heat-pump-installers": {
     "heat-pump-installation": {
      "name": "Heat pump installation",
      "review_pattern": "\\bheat pumps?\\b",
      "offer_pattern": "\\bheat pumps? (?:installation|install|replacement|services?|systems?)\\b|\\bheat pumps\\b",
      "permit": {
       "index": "mechanical",
       "pattern": "heat\\s*pump|\\bhp\\b"
      }
     },
     "ductless-mini-splits": {
      "name": "Ductless mini-split installation",
      "review_pattern": "\\bmini[- ]?splits?\\b|\\bductless\\b",
      "offer_pattern": "\\bductless (?:mini[- ]?splits?|heat pumps?|systems?)\\b|\\bmini[- ]?splits?\\b",
      "permit": {
       "index": "mechanical",
       "pattern": "mini[\\s-]*split|ductless"
      }
     }
    },
    "roofers": {
     "roof-replacement": {
      "name": "Roof replacement",
      "review_pattern": "\\bnew roof\\b|\\broof replacement\\b|\\bre-?roof\\w*|\\breplac\\w* (?:our|the|my) (?:old )?roof\\b",
      "offer_pattern": "\\broof (?:replacements?|installations?)\\b|\\bre-?roofing\\b|\\bnew roofs?\\b",
      "permit": null
     },
     "roof-repair": {
      "name": "Roof repair",
      "review_pattern": "\\broof (?:repairs?|leaks?)\\b|\\brepair\\w* (?:our|the|my) roof\\b|\\bleak\\w* roof\\b",
      "offer_pattern": "\\broof (?:repairs?|leak repairs?)\\b",
      "permit": null
     }
    },
    "pest-control": {
     "rodent-control": {
      "name": "Rodent control",
      "review_pattern": "\\b(?:rats?|mice|mouse|rodents?)\\b",
      "offer_pattern": "\\b(?:rodent|rat|mouse|mice) (?:control|removal|exclusion|extermination|proofing)\\b",
      "permit": null
     },
     "ant-control": {
      "name": "Ant control",
      "review_pattern": "\\bants\\b|\\bcarpenter ants?\\b",
      "offer_pattern": "\\b(?:ant|carpenter ant) (?:control|treatment|removal|extermination)\\b",
      "permit": null
     },
     "wasp-removal": {
      "name": "Wasp and hornet removal",
      "review_pattern": "\\b(?:wasps?|hornets?|yellow ?jackets?)\\b",
      "offer_pattern": "\\b(?:wasp|hornet|yellow ?jacket|stinging insect)s? (?:control|removal|nests?|treatment)\\b",
      "permit": null
     },
     "bed-bug-treatment": {
      "name": "Bed bug treatment",
      "review_pattern": "\\bbed ?bugs?\\b",
      "offer_pattern": "\\bbed ?bugs?\\b",
      "permit": null
     }
    },
    "garage-door-repair": {
     "spring-replacement": {
      "name": "Garage door spring replacement",
      "review_pattern": "\\bsprings?\\b",
      "offer_pattern": "\\b(?:garage door |torsion |broken |extension )springs?\\b|\\bspring (?:replacement|repair)s?\\b",
      "permit": null
     },
     "opener-installation": {
      "name": "Garage door opener installation",
      "review_pattern": "\\bopeners?\\b",
      "offer_pattern": "\\b(?:garage door )?openers? (?:installation|install|repair|replacement)s?\\b|\\bgarage door openers\\b",
      "permit": null
     },
     "new-garage-doors": {
      "name": "New garage door installation",
      "review_pattern": "\\bnew (?:garage )?doors?\\b|\\bdoor (?:replacement|installation|install)\\b",
      "offer_pattern": "\\bgarage doors? (?:installation|install|replacement)s?\\b|\\bnew garage doors?\\b",
      "permit": null
     }
    },
    "junk-removal": {
     "hot-tub-removal": {
      "name": "Hot tub removal",
      "review_pattern": "\\bhot ?tubs?\\b",
      "offer_pattern": "\\bhot ?tub (?:removal|disposal|haul\\w*)\\b",
      "permit": null
     },
     "appliance-removal": {
      "name": "Appliance removal",
      "review_pattern": "\\b(?:fridge|refrigerator|freezer|washer|dryer|appliances?)\\b",
      "offer_pattern": "\\bappliance (?:removal|disposal|haul\\w*|recycling)\\b",
      "permit": null
     },
     "estate-cleanouts": {
      "name": "Estate and house cleanouts",
      "review_pattern": "\\b(?:estate|clean[- ]?outs?|cleaned out)\\b",
      "offer_pattern": "\\b(?:estate|house|home|garage|basement|hoarder) clean[- ]?outs?\\b",
      "permit": null
     }
    },
    "window-tinting": {
     "home-window-tinting": {
      "name": "Home window tinting",
      "review_pattern": "\\b(?:home|house|residential|living room|bedroom)\\b.{0,40}\\b(?:tint\\w*|film)\\b|\\b(?:tint\\w*|film)\\b.{0,40}\\b(?:home|house)\\b",
      "offer_pattern": "\\b(?:residential|home|house) (?:window )?(?:tint\\w*|films?)\\b",
      "permit": null
     }
    },
    "landscaping": {
     "hardscaping": {
      "name": "Patios and retaining walls",
      "review_pattern": "\\b(?:pavers?|retaining walls?|hardscap\\w*|flagstone)\\b",
      "offer_pattern": "\\bhardscap\\w*|\\bretaining walls?\\b|\\bpaver (?:patios?|walkways?|installation)\\b",
      "permit": null
     },
     "lawn-care": {
      "name": "Lawn care",
      "review_pattern": "\\blawns?\\b|\\bmow\\w*",
      "offer_pattern": "\\blawn (?:care|maintenance|mowing|services?)\\b",
      "permit": null
     },
     "yard-cleanup": {
      "name": "Yard cleanup",
      "review_pattern": "\\b(?:yard|garden) clean[- ]?ups?\\b|\\bclean(?:ed)? up (?:our|the|my) (?:yard|garden)\\b",
      "offer_pattern": "\\b(?:yard|garden|seasonal|spring|fall) clean[- ]?ups?\\b",
      "permit": null
     }
    },
    "tree-services": {
     "tree-removal": {
      "name": "Tree removal",
      "review_pattern": "\\btree remov\\w*|\\bremov\\w* (?:\\w+ ){0,3}trees?\\b|\\b(?:took|cut|taken) down\\b",
      "offer_pattern": "\\btree (?:removal|removals|cutting)\\b",
      "permit": null
     },
     "stump-grinding": {
      "name": "Stump grinding",
      "review_pattern": "\\bstumps?\\b",
      "offer_pattern": "\\bstump (?:grinding|removal)\\b",
      "permit": null
     },
     "tree-pruning": {
      "name": "Tree pruning and trimming",
      "review_pattern": "\\b(?:prun\\w*|trim\\w*)\\b",
      "offer_pattern": "\\btree (?:pruning|trimming)\\b",
      "permit": null
     }
    },
    "painters": {
     "exterior-painting": {
      "name": "Exterior house painting",
      "review_pattern": "\\bexterior\\b|\\boutside of (?:our|the|my) (?:house|home)\\b",
      "offer_pattern": "\\bexterior (?:house |home |residential )?painting\\b",
      "permit": null
     },
     "interior-painting": {
      "name": "Interior painting",
      "review_pattern": "\\binterior\\b",
      "offer_pattern": "\\binterior (?:house |home |residential )?painting\\b",
      "permit": null
     },
     "cabinet-painting": {
      "name": "Cabinet painting",
      "review_pattern": "\\bcabinets?\\b",
      "offer_pattern": "\\bcabinet (?:painting|refinishing|refacing)\\b",
      "permit": null
     }
    },
    "fence-companies": {
     "wood-fences": {
      "name": "Wood fence installation",
      "review_pattern": "\\b(?:cedar|wood(?:en)?) fenc\\w*|\\bcedar\\b",
      "offer_pattern": "(?<!simulated )(?<!faux )(?<!composite )\\b(?:cedar|wood(?:en)?) fenc(?:e|es|ing)\\b",
      "permit": null
     },
     "fence-repair": {
      "name": "Fence repair",
      "review_pattern": "\\bfence repairs?\\b|\\brepair\\w* (?:our|the|my) fence\\b",
      "offer_pattern": "\\bfence repairs?\\b",
      "permit": null
     }
    },
    "concrete-contractors": {
     "driveways": {
      "name": "Concrete driveways",
      "review_pattern": "\\bdriveways?\\b",
      "offer_pattern": "\\b(?:concrete|new|stamped|exposed aggregate) driveways?\\b|\\bdriveways\\b|\\bdriveway (?:installation|install|replacement|repair|paving|pours?)\\b",
      "permit": null
     },
     "patios": {
      "name": "Concrete patios",
      "review_pattern": "\\bpatios?\\b",
      "offer_pattern": "\\b(?:concrete|stamped) patios?\\b",
      "permit": null
     }
    },
    "pressure-washing": {
     "roof-cleaning": {
      "name": "Roof cleaning and moss removal",
      "review_pattern": "\\bmoss\\b|\\broof\\b",
      "offer_pattern": "\\broof (?:cleaning|washing)\\b|\\bmoss (?:removal|treatment)\\b",
      "permit": null
     },
     "house-washing": {
      "name": "House washing",
      "review_pattern": "\\b(?:house|soft) wash\\w*|\\bwash\\w* (?:our|the|my) (?:house|home|siding)\\b",
      "offer_pattern": "\\b(?:house|soft|siding) washing\\b",
      "permit": null
     },
     "driveway-cleaning": {
      "name": "Driveway and patio cleaning",
      "review_pattern": "\\b(?:driveways?|patios?|decks?|walkways?|sidewalks?)\\b",
      "offer_pattern": "\\b(?:driveway|concrete|deck|patio|sidewalk) (?:cleaning|washing)\\b",
      "permit": null
     }
    },
    "carpet-cleaning": {
     "upholstery-cleaning": {
      "name": "Upholstery cleaning",
      "review_pattern": "\\b(?:upholstery|couch\\w*|sofas?|sectionals?)\\b",
      "offer_pattern": "\\bupholstery cleaning\\b",
      "permit": null
     },
     "pet-stain-removal": {
      "name": "Pet stain and odor removal",
      "review_pattern": "\\b(?:pet|dog|cat)s?\\b.{0,40}\\b(?:stain|odor|odour|urine|smell|accident)\\w*|\\burine\\b",
      "offer_pattern": "\\bpet (?:stain|odor|odour|urine)\\w*",
      "permit": null
     },
     "tile-grout-cleaning": {
      "name": "Tile and grout cleaning",
      "review_pattern": "\\bgrout\\b",
      "offer_pattern": "\\btile (?:and|&) grout\\b|\\bgrout cleaning\\b",
      "permit": null
     }
    },
    "appliance-repair": {
     "refrigerator-repair": {
      "name": "Refrigerator repair",
      "review_pattern": "\\b(?:fridge|refrigerator|freezer|ice maker)s?\\b",
      "offer_pattern": "\\b(?:refrigerator|fridge|freezer) repairs?\\b",
      "permit": null
     },
     "washer-dryer-repair": {
      "name": "Washer and dryer repair",
      "review_pattern": "\\b(?:washer|dryer|washing machine)s?\\b",
      "offer_pattern": "\\b(?:washer|dryer|washing machine|laundry) repairs?\\b",
      "permit": null
     },
     "dishwasher-repair": {
      "name": "Dishwasher repair",
      "review_pattern": "\\bdishwashers?\\b",
      "offer_pattern": "\\bdishwasher repairs?\\b",
      "permit": null
     },
     "oven-range-repair": {
      "name": "Oven and range repair",
      "review_pattern": "\\b(?:ovens?|stoves?|ranges?|cooktops?)\\b",
      "offer_pattern": "(?<!microwave )\\b(?:oven|stove|range|cooktop) repairs?\\b",
      "permit": null
     }
    },
    "flooring": {
     "hardwood-refinishing": {
      "name": "Hardwood floor refinishing",
      "review_pattern": "\\brefinish\\w*|\\bsand(?:ed|ing)\\b",
      "offer_pattern": "\\b(?:hardwood |wood )?floor refinishing\\b|\\bhardwood refinishing\\b|\\bsand and refinish\\b",
      "permit": null
     },
     "luxury-vinyl-plank": {
      "name": "Luxury vinyl plank installation",
      "review_pattern": "\\b(?:lvp|luxury vinyl|vinyl plank)\\b",
      "offer_pattern": "\\b(?:lvp|luxury vinyl(?: plank)?|vinyl plank)\\b",
      "permit": null
     },
     "hardwood-installation": {
      "name": "Hardwood floor installation",
      "review_pattern": "\\bhardwood\\b",
      "offer_pattern": "\\bhardwood (?:floor(?:ing)? )?(?:installation|install)\\b",
      "permit": null
     }
    },
    "bathroom-remodeling": {
     "tub-to-shower": {
      "name": "Tub-to-shower conversion",
      "review_pattern": "\\bwalk[- ]in shower\\b|\\btub[- ]to[- ]shower\\b|\\bshower conversion\\b",
      "offer_pattern": "\\btub[- ]to[- ]shower\\b|\\bshower conversions?\\b|\\bwalk[- ]in showers?\\b",
      "permit": null
     }
    },
    "foundation-repair": {
     "crawl-space-repair": {
      "name": "Crawl space repair and encapsulation",
      "review_pattern": "\\bcrawl ?space\\b",
      "offer_pattern": "\\bcrawl ?space (?:encapsulation|repair|waterproofing|services?)\\b",
      "permit": null
     },
     "basement-waterproofing": {
      "name": "Basement waterproofing",
      "review_pattern": "\\bwaterproof\\w*|\\bbasement\\b",
      "offer_pattern": "\\bbasement waterproofing\\b",
      "permit": null
     }
    },
    "locksmiths": {
     "car-lockout": {
      "name": "Car lockout",
      "review_pattern": "\\block(?:ed)? (?:my keys |the keys )?(?:out of|in) (?:my|our|the) (?:car|vehicle|truck)\\b|\\bcar lockout\\b|\\bkeys? (?:locked )?in (?:my|the) (?:car|truck)\\b",
      "offer_pattern": "\\b(?:car|auto|vehicle|automotive) lock ?outs?\\b",
      "permit": null
     },
     "rekeying": {
      "name": "Rekeying",
      "review_pattern": "\\bre-?key\\w*",
      "offer_pattern": "\\bre-?key(?:ing|s)?\\b",
      "permit": null
     },
     "car-key-replacement": {
      "name": "Car key replacement",
      "review_pattern": "\\b(?:key ?)?fobs?\\b|\\b(?:car|truck|vehicle) keys?\\b|\\btransponder\\b",
      "offer_pattern": "\\b(?:car|auto|automotive|vehicle) key (?:replacement|programming|duplication)\\b|\\bkey fobs?\\b",
      "permit": null
     }
    },
    "movers": {
     "piano-moving": {
      "name": "Piano moving",
      "review_pattern": "\\bpianos?\\b",
      "offer_pattern": "\\bpiano mov\\w*",
      "permit": null
     },
     "packing-services": {
      "name": "Packing services",
      "review_pattern": "\\bpack(?:ed|ing)\\b",
      "offer_pattern": "\\bpacking (?:services?|and unpacking)\\b",
      "permit": null
     },
     "long-distance-moving": {
      "name": "Long-distance moving",
      "review_pattern": "\\b(?:long[- ]distance|cross[- ]country|out of state|interstate)\\b",
      "offer_pattern": "\\b(?:long[- ]distance|interstate|cross[- ]country) mov\\w*",
      "permit": null
     }
    },
    "insulation": {
     "attic-insulation": {
      "name": "Attic insulation",
      "review_pattern": "\\battic\\b",
      "offer_pattern": "\\battic insulation\\b",
      "permit": null
     }
    },
    "gutter-installation": {
     "gutter-guards": {
      "name": "Gutter guards",
      "review_pattern": "\\b(?:gutter|leaf) (?:guards?|covers?|protection)\\b",
      "offer_pattern": "\\b(?:gutter|leaf) (?:guards?|covers?|protection)\\b",
      "permit": null
     },
     "seamless-gutters": {
      "name": "Seamless gutters",
      "review_pattern": "\\bseamless\\b",
      "offer_pattern": "\\bseamless gutters?\\b",
      "permit": null
     }
    },
    "gutter-cleaning": {
     "roof-moss-removal": {
      "name": "Roof moss removal",
      "review_pattern": "\\bmoss\\b",
      "offer_pattern": "\\bmoss (?:removal|treatment|control)\\b|\\broof cleaning\\b",
      "permit": null
     }
    },
    "chimney-sweeps": {
     "chimney-inspection": {
      "name": "Chimney inspection",
      "review_pattern": "\\binspect\\w*",
      "offer_pattern": "\\bchimney inspections?\\b",
      "permit": null
     },
     "chimney-repair": {
      "name": "Chimney repair",
      "review_pattern": "\\b(?:repair\\w*|rebuil\\w*|crown|flashing|liner|masonry|tuck ?point\\w*)\\b",
      "offer_pattern": "\\bchimney (?:repairs?|rebuild\\w*|liners?|relining|masonry)\\b|\\btuck ?pointing\\b",
      "permit": null
     }
    },
    "air-duct-cleaning": {
     "dryer-vent-cleaning": {
      "name": "Dryer vent cleaning",
      "review_pattern": "\\bdryer vents?\\b",
      "offer_pattern": "\\bdryer vent cleaning\\b",
      "permit": null
     }
    },
    "house-cleaning": {
     "deep-cleaning": {
      "name": "Deep cleaning",
      "review_pattern": "\\bdeep clean\\w*",
      "offer_pattern": "\\bdeep cleaning\\b",
      "permit": null
     },
     "move-out-cleaning": {
      "name": "Move-out cleaning",
      "review_pattern": "\\bmove[- ]?(?:out|in)\\b",
      "offer_pattern": "\\bmove[- ]?(?:out|in) cleaning\\b",
      "permit": null
     }
    }
   },
   "validation": null
  },
  "limits": [
   "The rules match words, not meaning. 'They did not finish the panel upgrade' still contains the words; only the star rating filter (4 or 5 stars) removes most unhappy reviews.",
   "A short or broad word (for example 'attic' for attic insulation, or 'inspect' for chimney inspection) can match a review about other work.",
   "Reviews written in other languages, or that name the job in other words, are missed.",
   "The trade job rules were not checked against a reference sample. Some are broad: for example 'springs' for garage door spring replacement or 'attic' for attic insulation can match unrelated text.",
   "The electrical check counts misses and wrong additions only; it did not record correct matches, so no rate can be computed from it."
  ],
  "text_handling": "Review text is kept privately and never published. Only the rule label is used on the pages."
 },
 "trade_split": {
  "method_version": "3.2",
  "rules_version": "trade-families-2026-11-14c",
  "families": {
   "bathroom-remodeling": "remodeling",
   "electricians": "electrical",
   "ev-charger-installation": "electrical",
   "gutter-cleaning": "gutters",
   "gutter-installation": "gutters",
   "heat-pump-installers": "hvac",
   "hvac": "hvac",
   "irrigation": "landscape",
   "kitchen-remodeling": "remodeling",
   "landscaping": "landscape",
   "mold-remediation": "restoration",
   "plumbers": "plumbing",
   "solar-installers": "electrical",
   "water-damage-restoration": "restoration",
   "water-heaters": "plumbing"
  },
  "family_rule": "Lists in one family never divide reviews between each other; every list not named here is its own family.",
  "patterns": {
   "electrical": "\\belectricians?\\b|\\belectrical (?:work|problems?|issues?|repairs?|system|panels?|service|needs|upgrades?|jobs?|checkups?|inspections?|outlets?)\\b|\\brewir\\w*|\\b(?:breaker|service) panels?\\b|\\bpanel (?:upgrade|replacement)s?\\b|\\bev charg\\w*|\\bsolar\\b|\\boutlets?\\b|\\bbreakers?\\b|\\blight fixtures?\\b",
   "plumbing": "\\bplumb\\w*|\\bpipes?\\b|\\bdrains?\\b|\\bclog\\w*|\\btoilets?\\b|\\bfaucets?\\b|\\bsinks?\\b|\\bsewer\\b|\\bwater heaters?\\b|\\btankless\\b|\\bgarbage disposal\\b|\\bwater line\\b",
   "hvac": "\\bhvac\\b|\\bfurnaces?\\b|\\bheat pumps?\\b|\\ba/?c\\b|\\bair condition\\w*|\\bmini[ -]?splits?\\b|\\bductless\\b|\\bthermostat\\b|\\bheating\\b|\\bcooling\\b|\\bboiler\\b",
   "roofers": "\\broof\\w*|\\bshingles?\\b|\\bflashing\\b|\\bskylights?\\b",
   "gutters": "\\bgutters?\\b|\\bdownspouts?\\b|\\bleaf guards?\\b",
   "siding": "\\bsiding\\b|\\bhardie\\w*",
   "window-replacement": "\\bwindows?\\b|\\bpatio doors?\\b|\\bsliding doors?\\b",
   "window-tinting": "\\btint\\w*|\\bwindow film\\b",
   "pressure-washing": "\\b(?:pressure|power|soft)[ -]?wash\\w*",
   "concrete-contractors": "\\bconcrete\\b|\\bflatwork\\b|\\bslab\\b|\\bstamped\\b|\\bsidewalks?\\b",
   "foundation-repair": "\\bfoundations?\\b|\\bcrawl ?spaces?\\b|\\bpiers?\\b|\\bbasement\\b|\\bwaterproof\\w*",
   "painters": "\\bpaint\\w*|\\bstain(?:ed|ing)?\\b|\\bprimer\\b",
   "fence-companies": "\\bfenc\\w*|\\bgates?\\b",
   "landscape": "\\blandscap\\w*|\\birrigation\\b|\\bsprinklers?\\b|\\blawn\\b|\\bmow\\w*|\\bsod\\b|\\bmulch\\b|\\bhardscap\\w*|\\bpavers?\\b|\\bretaining walls?\\b|\\bplant(?:s|ing|ed)?\\b",
   "tree-services": "\\btrees?\\b|\\bstumps?\\b|\\bprun\\w*|\\blimbs?\\b|\\barborist\\w*",
   "pest-control": "\\bpests?\\b|\\brodents?\\b|\\brats?\\b|\\bmice\\b|\\bmouse\\b|\\bants\\b|\\bspiders?\\b|\\bwasps?\\b|\\btermites?\\b|\\bbed ?bugs?\\b|\\bexterminat\\w*",
   "garage-door-repair": "\\bgarage doors?\\b|\\bopeners?\\b",
   "junk-removal": "\\bjunk\\b|\\bhaul\\w*|\\bdebris\\b|\\bclean ?outs?\\b|\\bdump\\b",
   "movers": "\\bmov(?:e|ed|ers?|ing)\\b|\\bpacking\\b|\\bpacked\\b",
   "carpet-cleaning": "\\bcarpets?\\b|\\bupholstery\\b|\\brugs?\\b",
   "house-cleaning": "\\bhouse ?clean\\w*|\\bhome clean\\w*|\\bmaids?\\b|\\bdeep clean\\w*|\\bhousekeep\\w*|\\bmove[ -]?out clean\\w*",
   "air-duct-cleaning": "\\bducts?\\b|\\bductwork\\b|\\bdryer vents?\\b",
   "chimney-sweeps": "\\bchimneys?\\b|\\bfireplaces?\\b|\\bflues?\\b|\\bwood ?stoves?\\b",
   "insulation": "\\binsulat\\w*|\\battic\\b|\\bblown[ -]in\\b|\\bspray foam\\b",
   "remodeling": "\\bremodel\\w*|\\bkitchens?\\b|\\bbath(?:room)?s?\\b|\\bcabinets?\\b|\\bcounter ?tops?\\b|\\btile\\b|\\bshowers?\\b|\\brenovat\\w*",
   "flooring": "\\bfloor\\w*|\\bhardwood\\b|\\blaminate\\b|\\blvp\\b|\\bvinyl plank\\b",
   "restoration": "\\bwater damage\\b|\\bflood\\w*|\\bmou?ld\\b|\\brestor\\w*|\\bmitigat\\w*|\\bremediat\\w*|\\bdry(?:ing)? out\\b",
   "appliance-repair": "\\bappliances?\\b|\\bwashers?\\b|\\bdryers?\\b|\\bfridge\\b|\\brefrigerators?\\b|\\bdishwashers?\\b|\\bovens?\\b|\\bstoves?\\b",
   "handyman": "\\bhandy ?man\\b|\\bodd jobs?\\b|\\bhoney[ -]do\\b",
   "septic-pumping": "\\bseptic\\b",
   "pool-services": "\\bpools?\\b|\\bspas?\\b|\\bhot tubs?\\b",
   "locksmiths": "\\blocks?\\b|\\blocksmith\\w*|\\brekey\\w*|\\blocked out\\b|\\bkeys?\\b"
  },
  "name_removal": "Before matching, the company's own listing names, and forms such as 'Brand heating & air', are removed from the review text, because a brand name is not a description of work.",
  "trade_name_words": "(?:heating|cooling|air|a/?c|hvac|electric(?:al)?|plumbing|roofing|gutters?|construction|restoration|cleaning|remodeling|painting|landscaping|exteriors?|services?)",
  "division_rule": "A company whose lists span more than one family counts, on each list, the reviews about that list's family. Reviews are divided only among the company's families whose word rules passed the accuracy check (at least two are needed); a list whose own family did not pass keeps the whole listing, and reviews that name only such a family count as naming none. A review that names one or more of the passed families is shared equally between them; reviews that name none, or have no text, are shared in the same proportion. Division needs at least 20 reviews in the 24 months, and at least 5% of them, to name one of those families; otherwise the whole listing counts, as before.",
  "one_listing_rule": "A license ranked from several Google listings in one city is represented by the listing with the most Google ratings, and the dated reviews of all its listings are counted together. It applies only when all the listings are in the same city, and, when they serve different trade families, only when the pooled reviews can be divided; otherwise each list keeps the listing that qualified for it."
 },
 "offers": {
  "rule": "A business enters a job list only when its own website states the service. The offer pattern is searched in the text of the business's own pages.",
  "trade_jobs_version": "trade-jobs-rules-2026-11-13"
 }
}
