# Methodology: Return Reasons Decoder

Returns and units sold must cover the same dates. All money is the refund value unless stated.

## The 9 themes (fixed)

| Code | Theme | Default owner | Fixability | What goes here |
|---|---|---|---|---|
| SIZE_FIT | Size or fit | Listing content & size guidance | Fixable | Worn or sized product too big, small, long, tight; bought two sizes to compare |
| NOT_AS_DESCRIBED | Not as described | Listing content | Fixable | Looks, measures, works or is made differently from the listing: colour, dimensions of a hard good, material, features, what's in the box, compatibility |
| QUALITY_DEFECT | Defective or poor quality | Product quality & supplier | Fixable | Broke, failed, leaked, tore, pilled, smells, doesn't work, not caused by shipping |
| DAMAGED_IN_TRANSIT | Arrived damaged | Packaging & carrier | Fixable | Dented, crushed, scuffed, broken or torn on arrival; damaged box |
| WRONG_OR_MISSING | Wrong item or missing parts | Warehouse picking & packing | Fixable | Different SKU, size or colour than ordered; extra item; missing pieces |
| LATE_DELIVERY | Arrived too late | Fulfillment & carrier | Partly | After the promised date or after it was needed |
| BETTER_PRICE | Found a better price | Pricing | Partly | Cheaper elsewhere, price dropped |
| CHANGED_MIND | Changed mind or ordered by mistake | Customer | Not controllable | No longer needed, didn't like it, unwanted gift, customer's own ordering mistake |
| NO_REASON | No reason or too vague | Returns process | Not controllable | Nothing given, or too vague to place ("not happy", "meh", "returning", "see notes") |

Owners and fixability can be edited on the Taxonomy tab of the results; theme codes cannot. A tenth value, `UNCLASSIFIED`, only appears when a line still needs classifying.

## How each line gets its theme (in this order)

1. **Has a customer comment** → the theme Claude gave that comment in the classification file. The comment always beats the reason code, because customers often pick the code that gets them free return shipping.
2. **No comment, known reason code** → the code map in `scripts/schema.py` (`CODE_MAP`): common Amazon FBA return reasons, Shopify return reasons and typical returns-app wording.
3. **No comment, unknown code** → the theme Claude gave that code in the classification file.
4. **Neither** → NO_REASON.
5. Comment not yet classified → its code map theme if there is one ("Code (comment not yet classified)"), else UNCLASSIFIED. Both raise a warning.

The script never guesses a comment's theme. Only the classification file places comments, so the same file always gives the same result. The `suggested_theme` column in the export is a keyword hint to speed up reading; analyze.py ignores it.

## Classification rules for Claude

Read the comment, not the code. One theme per line: the customer's main reason.

- **Size or fit vs Not as described.** Fit of something worn or sized (clothing, shoes, hats, gloves, bands that go round a body) is SIZE_FIT, including "runs small", "size chart was off" and buying two sizes to compare. A hard good that is a different size from the photos ("smaller than pictured", "laptop doesn't fit") is NOT_AS_DESCRIBED. "Doesn't fit my bottle/phone/car" (compatibility) is NOT_AS_DESCRIBED.
- **Quality vs Damaged in transit.** If it arrived broken, dented, scratched or with damaged packaging, it is DAMAGED_IN_TRANSIT. If it broke or failed in use ("after a week", "on the second use"), it is QUALITY_DEFECT.
- **Not as described vs Quality.** A claim in the listing that the product doesn't meet ("says waterproof but soaked through") is NOT_AS_DESCRIBED. A product that worked and then failed is QUALITY_DEFECT.
- **Wrong item vs Changed mind.** The brand sent the wrong thing → WRONG_OR_MISSING. The customer ordered the wrong thing → CHANGED_MIND.
- **Colour.** Colour different from photos → NOT_AS_DESCRIBED. Received a different colour from the one ordered → WRONG_OR_MISSING. Colour faded in use → QUALITY_DEFECT.
- **Vague dissatisfaction** with no cause ("not happy", "meh", "returning", "see notes") → NO_REASON. "Just not for me", "didn't like the style" → CHANGED_MIND.
- **Retailer or wholesale comments** relaying end-customer feedback ("customers say these run small") → the theme of the feedback.
- **Codes with no comment** that aren't reasons (for example Amazon's switched-item code) → NO_REASON, with a note. Fraud is out of scope.
- Use the `note` column for anything a reader should know (two causes named, possible abuse, wear after long use).

## Per line (Returns_Classified)

```
Refund used     = refund value; if blank, units x average selling price for that SKU and channel
                  (Sales revenue / units), else for that SKU across channels, else 0
Est. cost       = cost to process one return + refund used x share of value lost
Has a Sales row = 1 if the SKU and channel pair is on the Sales tab
Counts toward fixable causes = theme is Fixable or Partly
                  AND (codes are trusted OR the line was placed from a comment)
                  AND (goal is not "Better reviews and ratings" OR theme is a product-experience theme)
```

Product-experience themes: Size or fit, Not as described, Defective or poor quality, Arrived damaged, Wrong item or missing parts.

## Rates and flags

```
Overall return rate = units returned on lines with a Sales row / total units sold
SKU return rate     = that SKU's units returned (lines with a Sales row) / its units sold
x your overall rate = SKU return rate / overall return rate
Flag                = "High vs your range" if units sold >= minimum AND x your overall rate >= the set multiple
                      "Too few sales to judge" if units sold < minimum; "No sales data" if no Sales row
Top theme           = the theme with the most returned units for that SKU
```

Rates compare each SKU with the brand's own range. No industry benchmark is used.

## Fixable causes (Fix_List)

Groups the counted lines by SKU x theme and ranks them:

| Goal (profile) | Ranked by |
|---|---|
| Cut the cost of returns | Estimated cost |
| Fewer returns | Units returned |
| Better reviews and ratings | Units returned, product-experience themes only |

Each row shows the most common customer comments for that pair and the first fix to try for the theme. Fix_List and the quotes on the Themes tab are written as run; every other number is a live formula.

## How the brand's answers change parameters

| Answer | Effect |
|---|---|
| Goal | Ranking basis for fixable causes (table above) |
| Value lost per return: Low / Medium / High | 20% / 50% / 80% of the refund counts as lost |
| Trust in reason codes: Mostly | Code-only lines count toward fixable causes |
| Trust in reason codes: Not much | Code-only lines count in theme totals but not in fixable causes |
| Minimum units sold | SKUs below it are not flagged |

Template assumptions: cost to process a return (default $0, so the cost counts lost product value only until the brand enters its own figure), high-rate multiple (default 1.5x), number of fixable causes listed (10), comments shown per theme (3).

## Glossary

- **Return rate**: units returned / units sold over the same dates.
- **Reason code**: the reason a customer picks from a list. **Customer comment**: what they type.
- **Disposition**: what happened to the returned unit (sellable, damaged, defective). Shown for context, not used in the maths.
- **Bracketing**: buying several sizes to keep one. Placed under Size or fit, because better size guidance is the fix.
