Overview

The TriBrand Analyzer is an automated analysis tool for detecting tri-brand scenarios in payment portfolios. It uses pattern matching, regex rules, and business logic to identify accounts where cardholders may be using cards at their own brand locations—a compliance and fraud detection requirement.

95%+
Accuracy
~90%
Time Saved
100%
Coverage
4 Types
Rules
TriBrand Detection Rules

The Problem

Business Context

Fleet card programs need to identify "tri-brand" scenarios where cardholders use their company card at their own brand's locations. This creates compliance issues and potential fraud. Manual detection required reviewing thousands of transactions against brand lists—a time-consuming and error-prone process.

Detection Challenges

Thousands of transactions to review
Multiple brand name variations
Complex matching rules
High false positive rate

The Solution

Built an automated analyzer using Google Apps Script with regex pattern matching, configurable detection rules, and confidence scoring. The tool processes entire portfolios and generates actionable reports with flagged accounts.

Core Features

Regex Pattern Matching
Flexible rules for brand name detection
Confidence Scoring
Weighted scoring for match quality
Detailed Reports
Exportable results with match details
Configurable Rules
Admin interface for rule management

Detection Rules

Rule TypePatternAction
Brand Name MatchCompany name appears in merchant dataFlag as potential tri-brand
MCC CategoryMerchant category code matches known patternsCross-reference with brand list
Location MatchGeographic proximity to brand locationsValidate brand association
Transaction PatternSpending patterns match brand profileScore confidence level

Results

MetricBeforeAfterImprovement
Detection AccuracyManual review95%+Automated
Processing TimeHoursMinutes~90% reduction
CoverageSamplingFull portfolio100% coverage
False PositivesHighMinimalRule refinement
95%+
Detection Accuracy
~90%
Time Reduction
100%
Portfolio Coverage

Technologies Used

Google Apps ScriptJavaScriptRegexGoogle Sheets