Skip to content
intermediatetext

CodedLang Coded Language in Chinese Online Reviews

Judge whether Chinese restaurant reviews contain coded language and highlight each coded span, using radio and span schemes. Items are real CodedLang reviews.

Try it live — no install

Boot the real Potato server in your browser (WebAssembly) and annotate with this exact config. Nothing leaves your machine.

Run live in your browser

Get This Design

View on GitHub(opens in a new tab)

Clone or download from the repository

Quick start:

bash
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/text/linguistics/codedlang-coded-language-reviews
potato start config.yaml

About this dataset

CodedLang is a dataset of Chinese Google Maps reviews built by Ruyuan Wan, Changye Li, and Ting-Hao Kenneth Huang and published at ACL 2026. The paper defines coded language as the intentional encoding of meaning, so that the surface text differs from the intended meaning and must be decoded to be understood. The dataset is released under CC BY 4.0 on Hugging Face with an English machine translation for each review.

The paper has annotators decide whether a review contains coded language and then mark each coded span with one of seven encoding strategies. The design keeps both steps. A radio scheme holds the review-level decision, and a span scheme holds the seven categories with the paper's Table 1 names. The released data call the sixth class transliteration, and the design uses the paper's name. The glossary in the config header is quoted from Table 1, and the label tooltips are shortened paraphrases. The release has no per-span class column, so the eight sample reviews carry no gold span labels. The reviews are real CodedLang items with the dataset's own machine translation shown for reference only. The dataset card does not say whether the rights to the underlying review text reach beyond the dataset license.

The config header describes a multi-stage protocol. The two decisions run for the same annotator here, and a second stage by different annotators could chain a second task with data_files[].filter_by_prior_annotation, assignment_strategy: model_review, or adjudication. The model_training block lets the sklearn-text trainer learn the review-level radio scheme and write predictions back as pre-labels on unlabeled reviews. The trainer does not learn the span categories and does not decode any text. From Potato 2.15.0, the pre_annotation export format writes the answers of one stage as the predictions_file of the next stage.

Sample items in this design
8 real reviews (ids 12, 26, 39, 83, 259, 526, 901, 902), checked row by row against the Hugging Face dataset
Encoding strategies
7 (Table 1 of the paper)
License
CC BY 4.0 (dataset card)

Configuration File

This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.

yaml
# yaml-language-server: $schema=https://potatoannotator.readthedocs.io/en/latest/schemas/potato-config.schema.json
# CodedLang: coded language in Chinese Google Maps reviews
# Paper: Wan, Li and Huang (2026), "Newspaper Eat" Means "Not Tasty": A Taxonomy and Benchmark for
#   Coded Language in Real-World Chinese Online Reviews, ACL 2026 (long, pages 9433-9446),
#   DOI 10.18653/v1/2026.acl-long.426, https://aclanthology.org/2026.acl-long.426/
#   (arXiv preprint: https://arxiv.org/abs/2601.19932)
# Dataset: https://huggingface.co/datasets/RuyuanWan/CodedLang (CC BY 4.0), code at
#   https://github.com/Crowd-AI-Lab/CodedLang
# Sample data: 8 real reviews from CodedLang.csv (ids 12, 26, 39, 83, 259, 526, 901, 902),
#   redistributed under CC BY 4.0 with attribution to the dataset authors. The dataset card does not say
#   whether the rights to the underlying Google Maps review text reach beyond that license.
# Glossary (Table 1 of the paper):
#   Ambiguous Homophone: "Existing lexical phrases whose surface form is a valid expression,
#     but whose intended meaning differs from the literal meaning via homophones."
#   Non-Lexical Homophone: "Homophonic characters that do not form a valid lexical expression
#     on the surface, but can be decoded phonetically into a conventional phrase."
#   Phonetic Substitution: "Use of phonetic symbols, including Pinyin, Zhuyin, or Roman letters,
#     to substitute for standard Chinese characters based on pronunciation."
#   Emoji Substitution: "Emoji replace textual content and convey an encoded meaning that differs
#     from the literal emoji semantics."
#   Orthographic Substitution: "Encoding through visual or orthographic similarity between
#     characters and symbols."
#   Cross-Lingual Phonetic Encoding: "Encoding meaning through cross-lingual phonetic
#     approximation, often involving transliteration or translation of homophones."
#   Cipher: "The whole sentence is a nonsensical expression without a clear literal semantic meaning."
# Adaptations: the paper has annotators first decide whether a review contains coded language and
#   then mark each coded span with one category (Section 3.2). Both steps are kept. The released
#   labels call the sixth class "transliteration"; this design uses the paper's name. Label tooltips are shortened
#   paraphrases of the Table 1 definitions quoted above. The dataset has no per-span class column (coded_lang_class is
#   review-level and multi-label; code_span holds the span text), so the sample items carry no gold span labels. The
#   machine translation shown is the dataset's translated_review (Google Translate per the paper).
#   Multi-stage protocol: the paper's two decisions (is there coded language, then which category per
#   span) run for the same annotator here. A second stage by different annotators, such as checking the
#   first annotator's spans, would chain a second task with data_files[].filter_by_prior_annotation, or
#   use assignment_strategy: model_review or adjudication.
# model_training: the radio scheme contains_coded_language is nominal text classification, which the
#   sklearn-text trainer consumes (pick it on /admin/training). It fits a bag-of-words or
#   sentence-embedding classifier on the labeled reviews and writes its predictions back as pre-labels
#   on unlabeled reviews. It does not learn the span categories and does not decode any text.
#   From Potato 2.15.0, the pre_annotation export format (python -m potato.export --format pre_annotation)
#   writes stage 1's answers as the next stage's predictions_file.
annotation_task_name: "Coded Language in Chinese Reviews (CodedLang)"
task_dir: .
output_annotation_dir: annotation_output/
export_annotation_format: jsonl

data_files:
  - sample-data.json

item_properties:
  id_key: id
  text_key: text

instance_display:
  fields:
    - key: text
      type: text
      label: "Review (original Chinese)"
      span_target: true
    - key: translation
      type: text
      label: "Machine translation (reference only)"

user_config:
  allow_all_users: true
  users: []

# Demo settings. Replace the key with your own value before a real study.
require_password: false
admin_api_key: "demo-admin-key"

model_training:
  enabled: true
  writeback:
    schemas: ["contains_coded_language"]
    include_unlabeled: true
    min_confidence: 0.6

annotation_instructions: |
  Coded language is the intentional encoding or obfuscation of meaning, so that the surface text
  differs from the intended meaning and must be decoded to be understood. Dialect, jargon and
  ordinary multilingual text are not coded language unless the meaning is disguised through an
  explicit encoding mechanism. First decide whether the review contains coded language, then
  highlight each coded span and give it the one category that names its main encoding strategy.

annotation_schemes:
  - annotation_type: radio
    name: contains_coded_language
    description: "Does this review contain coded language?"
    labels:
      - "Yes, it contains coded language"
      - "No, it contains no coded language"

  - annotation_type: span
    name: coded_spans
    description: "Highlight each coded expression and choose its encoding strategy"
    labels:
      - name: "Ambiguous Homophone"
        tooltip: "A valid expression whose intended meaning differs from the literal one via homophones"
        color: "#3b82f6"
      - name: "Non-Lexical Homophone"
        tooltip: "Homophonic characters that are not a valid expression on the surface but decode phonetically"
        color: "#6366f1"
      - name: "Phonetic Substitution"
        tooltip: "Pinyin, Zhuyin or Roman letters standing in for Chinese characters"
        color: "#22c55e"
      - name: "Emoji Substitution"
        tooltip: "Emoji replacing text and carrying an encoded meaning"
        color: "#f59e0b"
      - name: "Orthographic Substitution"
        tooltip: "Encoding through visual similarity between characters and symbols"
        color: "#ec4899"
      - name: "Cross-Lingual Phonetic Encoding"
        tooltip: "Transliteration or translation of homophones across languages"
        color: "#14b8a6"
      - name: "Cipher"
        tooltip: "The whole sentence is a nonsensical expression with no clear literal meaning"
        color: "#8b5cf6"
    sequential_key_binding: true

site_dir: default

Sample Data

json
[
  {
    "id": "coded_001",
    "text": "一不小心 還是買惹 vitamin & nuts 0305y14",
    "translation": "I’m not careful, I’m still buying vitamin & nuts. 0305y14",
    "source_id": "12"
  },
  {
    "id": "coded_002",
    "text": "真的不要住这个jb地方。That’s all what I can say.",
    "translation": "Don't really live in this jb place. That’s all what I can say.",
    "source_id": "26"
  }
]

// ... and 6 more items

Dataset & paper

Wan et al., ACL 2026

Paper DOI
10.18653/v1/2026.acl-long.426

Citation (BibTeX)

bibtex
@inproceedings{wan-etal-2026-newspaper,
    title = "``Newspaper Eat'' Means ``Not Tasty'': A Taxonomy and Benchmark for Coded Language in Real-World {C}hinese Online Reviews",
    author = "Wan, Ruyuan  and
      Li, Changye  and
      Huang, Ting-Hao Kenneth",
    editor = "Liakata, Maria  and
      Moreira, Viviane P.  and
      Zhang, Jiajun  and
      Jurgens, David",
    booktitle = "Proceedings of the 64th Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)",
    month = jul,
    year = "2026",
    address = "San Diego, California, United States",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2026.acl-long.426/",
    doi = "10.18653/v1/2026.acl-long.426",
    pages = "9433--9446",
    ISBN = "979-8-89176-390-6"
}

Details

Annotation Types

radiospan

Domain

Computational LinguisticsOnline ReviewsChinese NLP

Use Cases

Coded Language DetectionSpan AnnotationContent Moderation

Tags

codedlangcoded languagechineseonline reviewshomophonesemojispan annotation

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)