Privacy and preparation
Ecommerce multilingual support scope: labeling language boundaries
By SourceX Editorial · Updated
9 sections
Short answer
English-first retail support datasets should label language at the message level, not the account level: a BCP 47 tag per message or span, the method that assigned it, a conversation class from English-only to non-English, and an exclusion reason. A stratified sample then checks that the labels hold and that excluded conversations do not remove whole order, return or promotion situations from the scope.
Countries and languages
Ecommerce multilingual
Key takeaways
- Help desk and storefront language fields describe the customer, not each message, so they cannot be the label.
- Tag each message or span with a BCP 47 code, record how the tag was assigned and roll tags up to a conversation class.
- Detectors are weakest on short, mixed and romanized text, which is most of a chat queue.
- Sample by channel, market, contact reason, confidence band, exclusion reason and outcome type.
- Compare kept and excluded conversations on order, inventory, promotion, fulfillment and outcome links before freezing scope.
How should English-first retail support datasets label language boundaries?
Label the language of each message, or of each span when a message switches language, and keep that label separate from the customer's account language. Then roll the message labels up into a conversation class, record how every label was assigned, and give every excluded conversation a reason. Those four fields are enough for a buyer to filter the set, and for a reviewer to prove what was removed.
An English-first dataset is one where the business operates in English and most contacts are in English, but some are not. Ecommerce support makes this boundary messy: a U.S. storefront serves Canadian and Puerto Rican customers, marketplace sellers forward supplier messages, carriers send notices in the destination country's language, and customers paste product names that are not English words. Treating the whole set as English hides all of that; dropping anything that looks foreign removes real retail situations with it.
The decision this page supports is scope: which conversations go into the dataset, with what labels, and how to show that the exclusions did not distort the order, return and promotion cases the data is meant to teach.
Why the help desk's language field is not the conversation's language
Because help desks and commerce platforms store language as a property of the person, not of each message. Zendesk documents that it detects an end user's language from the body of the first email, falls back to the Accept-Language header and then the account default, and that later emails or tickets do not overwrite the detected language even if the user writes in another one. Its intelligent triage feature adds a separate Language field on new tickets, with its own confidence field.
Shopify's Admin API stores a locale on the Customer object, which describes the customer's preference rather than what they wrote in a given chat. A conversation can therefore carry an English account locale and a Spanish message, or a French locale and an English exchange. Treat these system fields as useful features for sampling, never as the label.
Which labels capture a language boundary in support conversations?
Five fields cover it: a per-message or per-span language tag, the source of that tag, the share of non-English content in the conversation, a conversation class and an exclusion reason. Use BCP 47 language tags, which RFC 5646 defines as a language subtag optionally followed by script and region subtags, for example sr-Latn-RS for Serbian in Latin script as used in Serbia. Script matters for support text because customers often write romanized forms, and some language identifiers report them separately.
Label agent and customer messages separately. An agent who replies in Spanish to a Spanish-speaking customer shows a business practice the model should learn; an agent who replies in English to a Spanish message shows a different one, and the dataset should let a buyer tell them apart. Store the author role next to every tag, and version the rules that turn message tags into a conversation class, so a later change in thresholds does not silently move conversations between classes.
| Field | Level | Values | How it is assigned |
|---|---|---|---|
| lang_tag | Message or span | BCP 47 tag such as en, es-MX, fr-CA, hi-Latn, or und when undetermined | Detector output, confirmed by a reviewer for spans under a length threshold |
| lang_source | Message or span | detector, reviewer, channel_metadata | Written by the pipeline; reviewer overrides are logged |
| non_en_share | Conversation | Share of customer and agent tokens not tagged English | Computed from the message tags |
| conv_class | Conversation | en_only, en_with_spans, mixed, non_en | Rule on non_en_share and on who wrote the non-English text |
| exclusion_reason | Conversation | out_of_scope_language, translation_only, quoted_third_party, none | Reviewer or rule, with the rule version stored |
| literal_tokens | Span | Product names, brand names, addresses, order notes kept as written | Catalog and address matching before detection |
Where do language detectors fail on retail support text?
On short messages, mixed messages and romanized text, which is most of what a chat queue contains. The Lingua project's documentation explains that detectors relying on character trigrams do well on multi-sentence text but that short phrases and single words provide too few n-grams for reliable estimates, and that its own mixed-language detection is still experimental and works best with several long words per language.
The common open models report different code systems. Facebook's fastText language identification models cover 176 languages, expect UTF-8 input and use two-letter codes, while the newer NLLB model uses ISO 639-3 codes plus a script code such as eng_Latn. Google's CLD3 outputs BCP 47 style codes and distinguishes some languages by script, including hi-Latn for Hindi in Latin script. Map every detector's output to one BCP 47 vocabulary before counting anything.
- Messages under a few words, such as yes, ok, gracias or order number replies: tag und and inherit from neighbors only if a reviewer rule allows it.
- Product and brand names: match against the catalog before detection so a product called Pain au Chocolat does not make a message French.
- Quoted carrier, marketplace or supplier notices: tag as a quoted span, not as the customer's language.
- Romanized text such as Hinglish: keep the script subtag so it is not counted as English.
- Agent macros in several languages: tag by the macro's language and keep the macro identifier.
The language coverage and exclusion sampling plan
The plan has two jobs: estimate how much non-English content the English-first set really contains, and check that each exclusion rule removes only what it claims to remove. Stratify the sample, because language problems cluster in specific channels, storefronts and contact reasons, and a simple random sample can miss them entirely.
For each stratum, size the sample to the precision you need on a proportion. The NIST Engineering Statistics Handbook sets sample size from the confidence level, the permitted error and the expected proportion, and notes that assuming a proportion of 0.5 gives the largest sample. Its worked inputs of 90% confidence and a margin of 4 percentage points come to roughly 423 conversations per stratum; a stratum with fewer conversations is reviewed in full.
Write the plan down before anyone looks at results: strata, sample sizes, the random seed, the reviewer instructions and the decision rules. Reviewers should tag the sample without seeing the detector output, so their tags are an independent check rather than a confirmation. Keep the reviewed sample as a held-out reference, and rerun the same plan whenever the detector, the exclusion rules or the date range change, so each version of the dataset carries its own measured English share.
| Stratum | What to draw | Check | Decision rule |
|---|---|---|---|
| Channel | Email, chat, messaging, voice transcript separately | Message tags against reviewer tags | Detector agreement below the threshold set in advance means reviewer tagging for that channel |
| Storefront or market | Each country storefront and marketplace | non_en_share distribution | A market with high non-English share gets its own conversation class review |
| Contact reason | Order status, returns, damaged item, promotion dispute, payment | Exclusion rate by reason | Exclusions concentrated in one reason trigger a scope review |
| Detector confidence band | Low, middle and high confidence messages | Error rate per band | Low band messages go to review or und |
| Excluded set | A sample of every exclusion_reason | Was the exclusion correct | Wrong exclusions above the agreed rate reopen the rule |
| Outcome type | Refund, replacement, store credit, denial, escalation | Outcome mix in kept versus excluded | A missing outcome type is documented as a coverage gap |
When does dropping a non-English conversation remove a retail case the model needs?
When the excluded conversations share an order situation that the English set does not contain. Retail support data teaches a model to act on linked facts: which item on which order, what stock showed when the customer asked, which promotion version applied, what fulfillment state the order was in and what the customer finally received. If cross-border returns, marketplace seller disputes or carrier exceptions happen disproportionately in another language, an English-only cut removes those situations, and the dataset quietly teaches that they never occur.
Compare the kept and excluded sets on the retail links below before you freeze the scope. Where they differ, either keep the conversations with their spans labelled, or record the gap in the dataset documentation so a buyer knows which situations are missing.
| Retail link | What to keep with each conversation | How language interacts |
|---|---|---|
| Order and item | Order ID token, line items, quantities, marketplace or first party | Cross-border orders draw more non-English contacts |
| Inventory at contact time | Stock state snapshot or timestamp to join one | Substitution offers in another language change the valid action |
| Promotion and price rule | Promotion identifier and version in force | Localized promotions may have different terms |
| Fulfillment state | Carrier, shipment status, exception codes | Carrier notices often arrive in the destination language |
| Customer outcome | Refund, replacement, credit, denial, and any later reversal | Outcome must be verified, not inferred from the last agent message |
Worked example (illustrative): a U.S. storefront with Canadian and Spanish-language contacts
This example is constructed for this page with illustrative counts. An apparel retailer proposes 60,000 chat and email conversations from its U.S. storefront and assumes they are English. Sampling by channel and contact reason shows that about 6% of conversations contain non-English customer text, mostly Spanish in chat and French in email from Canadian customers, and that returns account for half of those.
Under a strict English-only rule, the excluded set would remove most cross-border return cases, where the valid action depends on a different return window and carrier. The team instead keeps en_with_spans conversations with message tags, excludes only non_en conversations, and documents that cross-border returns remain but are under-represented.
The exception: a set of conversations flagged as French turned out to be English messages that quoted a carrier notice and a product named in French. Catalog matching and the quoted_third_party span label moved them back to en_with_spans. The limit: the plan estimates shares and checks rules; it does not fix a detector that is wrong on short replies, which still need reviewer tags.
Which language findings should pause the scope decision?
Pause when the numbers say the dataset is not what its name claims, or when the exclusions change what the data teaches. Most findings only need a label or a documented gap; a few need the scope rewritten.
- Non-English share in a channel or market is far above what the owner expected: re-scope that market as its own slice.
- Exclusions concentrate in one contact reason or outcome type: keep spans or document the gap before release.
- Detector and reviewer disagree often on short messages: switch that channel to reviewer tagging.
- Agents answered in another language using translation tools: record the translation as its own span and check whether the business may license translated text.
- Voice transcripts were produced by an English-only speech model: treat non-English calls as unreliable and exclude them with a reason.
What the English share means when support records are offered for licensing
The English share should be measured on the conversations actually offered, with the labels and sampling plan above as the evidence. That matters for eligibility as well as quality. SourceX's core coverage is U.S., Canadian and EU companies that had at least 50 full-time employees at their peak, contractors excluded; a retailer in the UK, Australia, New Zealand, India, Singapore, South Africa, Latin America, the UAE or Saudi Arabia can also be considered once at least 90% of the offered data is confirmed, on the dataset itself, to be in English.
Outside those three markets, the test is the support records actually offered, not where the retailer is based or which language its staff use, and every dataset still passes rights, privacy, quality and buyer-fit review. Checking eligibility starts with a short company assessment, with no conversation exports required.
Frequently asked questions
Should language be labelled per ticket or per message?
Per message, and per span when a message switches language. Ticket or account fields describe the customer or the first contact, and help desks such as Zendesk do not update a user's detected language when later messages switch. Roll message labels up into a conversation class for filtering.
Which language code standard should a support dataset use?
BCP 47 language tags, defined in RFC 5646, with script and region subtags when they matter. Map each detector's output, whether two-letter codes or ISO 639-3 with script, to that one vocabulary before counting.
How many conversations should be sampled to estimate the non-English share?
Size each stratum for the precision you need on a proportion. Using the NIST handbook's worst-case assumption of 0.5, 90% confidence and a 4-point margin, that is roughly 423 conversations per stratum. Review strata smaller than that in full.
Do product names in other languages make a message non-English?
They should not. Match catalog product names, brand names and addresses before running detection and keep them as literal tokens. Otherwise an English message about a French-named product can be excluded by mistake.
Is it safe to drop every conversation that is not English?
Only after checking what the excluded set contains. If cross-border returns, marketplace disputes or carrier exceptions sit mostly in other languages, dropping them removes those situations from the data. Keep labelled spans or document the gap.
Sources
- RFC 5646 (BCP 47) defines language tags as a language subtag optionally followed by script, region and other subtags, with sr-Latn-RS as an example of Serbian in Latin script as used in Serbia. Source
- Zendesk detects an end user's language from the body of the first email, falls back to the Accept-Language header and then the account default, and later emails do not overwrite the detected language. Source
- Zendesk's intelligent triage populates fields on new tickets, including Language, each with an associated confidence field. Source
- Shopify's GraphQL Admin API Customer object includes a locale field describing the customer's locale. Source
- fastText's language identification models recognize 176 languages and expect UTF-8 input, and the newer NLLB model uses ISO 639-3 codes plus a script code such as eng_Latn. Source
- Google's CLD3 outputs BCP-47-style language codes and differentiates some languages by script, including hi-Latn for Hindi in Latin script. Source
- The Lingua documentation explains that trigram-based detection is unreliable for short phrases and single words, and that its mixed-language detection is experimental and depends on the input text. Source
- The NIST Engineering Statistics Handbook sets the sample size for a proportion from the confidence level, the permitted error and the proportion, notes p = 0.5 gives the largest sample, and works an example at 90% confidence with e = 0.04. Source
See if your company qualifies
A short company assessment. No data uploads are needed.