SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.20993 · 2026

Phonemes to the Rescue: Multilingual Tokenization Based on International Phonetic Alphabet

Ekaterina Shutova, Julie Kallini, Milan Miletić

arXiv · PDF · Open in the Atlas

Code that ran

15 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 12 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.20993.json · badge: /api/ran/2606.20993.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Mikki99/ipa-tokenization canonical (classifier label)
classifier basis: census
15 ran · 1 no recorded run
FunctionStatusWhere it lives
apply_fix Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/g2p/jap_fix.py
code served (permissive licence) · get_code("44e55b1aa60bdfd6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Build a simple Trie node class
class TrieNode:
    def __init__(self):
        self.children = {}
        self.value = None

# Construct a small trie for testing
# We'll create a trie that replaces "cat" with "dog" and "hi" with "hello"
root = TrieNode()

# Insert "cat" -> "dog"
node = root
for char in "cat":
    if char not in node.children:
        node.children[char] = TrieNode()
    node = node.children[char]
node.value = "dog"

# Insert "hi" -> "hello"
node = root
for char in "hi":
    if char not in node.children:
        node.children[char] = TrieNode()
    node = node.children[char]
node.value = "hello"

# Test text with patterns to replace
text = "hi there, a cat is here"

ARGS = {
    "text": text,
    "trie_root": root
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_mapping_trie Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/g2p/jap_fix.py
code served (permissive licence) · get_code("c5c095f2793b10c6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned TrieNode. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import csv
import tempfile
import os

class TrieNode:
    def __init__(self):
        self.children = {}
        self.value = None

def build_mapping_trie(csv_path):
    root = TrieNode()
    with open(csv_path, encoding='utf-8') as f:
        reader = csv.DictReader(f)
        for row in reader:
            orth = row['Orth']
            phon = row['Phon']
            node = root
            for char in orth:
                if char not in node.children:
                    node.children[char] = TrieNode()
                node = node.children[char]
            node.value = phon
    return root

# Create a temporary CSV file with sample data
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, "mapping.csv")

with open(csv_path, 'w', newline='', encoding='utf-8') as f:
    writer = csv.DictWriter(f, fieldnames=['Orth', 'Phon'])
    writer.writeheader()
    writer.writerow({'Orth': 'cat', 'Phon': 'kæt'})
    writer.writerow({'Orth': 'dog', 'Phon': 'dɔg'})
    writer.writerow({'Orth': 'a', 'Phon': 'ə'})

ARGS = {
    'csv_path': csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TrieNode — a TrieNode output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TrieNode output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_trie Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/g2p/ipa_trie.py
code served (permissive licence) · get_code("5b0c48e052484bfa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned TrieNode. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

class TrieNode:
    """Node in a trie data structure for string matching."""

    def __init__(self):
        self.children = {}
        self.is_end = False

def build_trie(symbol_set):
    """
    Build a trie from a set of symbols for longest-match searching.
    
    Args:
        symbol_set: Set of symbols to store in the trie
        
    Returns:
        TrieNode: Root node of the constructed trie
    """
    root = TrieNode()
    for symbol in symbol_set:
        node = root
        for char in symbol:
            if char not in node.children:
                node.children[char] = TrieNode()
            node = node.children[char]
        node.is_end = True
    return root

# Create a symbol set with various strings
symbol_set = {
    "hello",
    "world",
    "he",
    "help",
    "test"
}

ARGS = {
    "symbol_set": symbol_set
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TrieNode — a TrieNode output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TrieNode output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_renyi_entropies Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/eval/intrinsic.py
code served (permissive licence) · get_code("920464019d7296ca")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from collections import Counter
from dataclasses import dataclass
import numpy as np

@dataclass
class FloresStats:
    """
    Aggregated FLORES+ statistics for a single language and tokenizer.
    
    Used to compute:
    - Renyi entropies
    - Compression rate
    - Vocabulary utilization
    - Zipf deviation
    """
    lang: str
    num_sentences: int
    num_tokens: int
    num_chars: float
    num_bytes: int
    num_unique_tokens: int
    vocab_size: int
    token_freq: Counter

# Create a valid FloresStats instance
token_freq = Counter({
    'the': 150,
    'a': 98,
    'is': 85,
    'and': 72,
    'to': 65,
    'of': 61,
    'in': 58,
    'that': 42,
    'it': 39,
    'for': 35
})

stats = FloresStats(
    lang='en',
    num_sentences=100,
    num_tokens=1000,
    num_chars=5234.5,
    num_bytes=6234,
    num_unique_tokens=10,
    vocab_size=50000,
    token_freq=token_freq
)

ARGS = {
    'stats': stats
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
count_lines Ran
ran, honoured the contract we drafted
Mikki99/ipa-tokenization/src/ipa_tok/gpt2/cache.py
code served (permissive licence) · get_code("c645258c69182925")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

# Create a temporary file with some content
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='utf-8') as f:
    temp_path = Path(f.name)
    f.write("line 1\n")
    f.write("line 2\n")
    f.write("line 3\n")

ARGS = {
    "path": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_longest_match Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/g2p/ipa_trie.py
code served (permissive licence) · get_code("b3ee2e7fcfb924b6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

class TrieNode:
    def __init__(self):
        self.children = {}
        self.is_end = False

# Build a simple trie
root = TrieNode()

# Add some words to the trie: "hello", "help", "world"
words = ["hello", "help", "world"]
for word in words:
    node = root
    for char in word:
        if char not in node.children:
            node.children[char] = TrieNode()
        node = node.children[char]
    node.is_end = True

# Test text that contains some of the words
text = "helloworld"
start_pos = 0

ARGS = {
    "text": text,
    "start_pos": start_pos,
    "trie_root": root
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_ignored_char Ran
ran, violated the contract we drafted
Mikki99/ipa-tokenization/src/ipa_tok/g2p/ipa_trie.py
code served (permissive licence) · get_code("7a19210e4c723bce")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import unicodedata

# The function is_ignored_char takes a single character parameter.
# It checks the Unicode category and performs simple character checks.
# No complex objects are needed.

# Test with a variety of characters to demonstrate the function works:
# - Regular letter: 'a' (should not be ignored)
# - Digit: '5' (should be ignored, category 'N')
# - Punctuation: '.' (should be ignored, category 'P')
# - Space: ' ' (should be ignored, category 'Z' or isspace())
# - Special 'g': 'g' (should be ignored explicitly)
# - IPA character: 'ɡ' (U+0261, might be ignored depending on category)

ARGS = {
    "char": "a"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
json_load Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/eval/ranking.py
code served (permissive licence) · get_code("16d15bb4e9564ac4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
from pathlib import Path
import tempfile
import os

# Create a temporary directory and file for testing
temp_dir = tempfile.mkdtemp()
temp_file = Path(temp_dir) / "test.json"

# Write a valid JSON file
test_data = {
    "key1": "value1",
    "key2": 42,
    "key3": [1, 2, 3],
    "key4": {"nested": "dict"}
}

with temp_file.open('w', encoding='utf-8') as f:
    json.dump(test_data, f)

# Define arguments for json_load function
ARGS = {
    "path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_ipa_set Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/g2p/ipa_set.py
code served (permissive licence) · get_code("6ef5254cfdf45db9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned set. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
from pathlib import Path
from typing import Set, Optional

# Create a temporary IPA set JSON file for testing
temp_ipa_data = {"a", "e", "i", "o", "u", "p", "t", "k"}
temp_json_content = json.dumps(list(temp_ipa_data))

# Create temporary file
with tempfile.NamedTemporaryFile(mode='w', suffix='.json', delete=False, encoding='utf-8') as f:
    f.write(temp_json_content)
    temp_path = f.name

ARGS = {
    'path': temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
metric_results_path_for_tokenizer Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/eval/paths.py
code served (permissive licence) · get_code("5a64f6f4a1b6920e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path

ARGS = {
    'model_path': 'tokenizers/text/random/bpe/1000/tokenizer.model',
    'metric_results_root': 'metric_results'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_tokenizer_id_from_model_path Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/eval/paths.py
code served (permissive licence) · get_code("26e50accd3e62115")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned TokenizerId. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from pathlib import Path

# The function parse_tokenizer_id_from_model_path takes a model_path parameter
# which should be a string or Path pointing to a tokenizer.model file in the
# expected directory structure: tokenizers/{mode}/{sampling_strategy}/{algorithm}/{vocab_size}/tokenizer.model

# Create a valid path that conforms to the expected layout
model_path = "path/to/tokenizers/text/random/bpe/10000/tokenizer.model"

ARGS = {
    "model_path": model_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TokenizerId — a TokenizerId output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TokenizerId output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reconstruct_characters_from_bytes Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/eval/intrinsic.py
code served (permissive licence) · get_code("7fa9a9d2ef998b50")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Analyze the function signature and body
# reconstruct_characters_from_bytes takes:
# - tokens: List[str] - list of token strings, some may be byte tokens like "<0xAB>"
# - text: str - a text string (appears to be unused in the function body)

# The function processes tokens, identifying byte tokens and regular tokens,
# and builds a dictionary of token weights

# Create test data
tokens = [
    "<0x48>",      # 'H' in hex
    "<0x65>",      # 'e' in hex
    "<0x6C>",      # 'l' in hex
    "<0x6C>",      # 'l' in hex
    "<0x6F>",      # 'o' in hex
    "world",       # regular token
    "<0xC3>",      # part of multi-byte UTF-8 sequence (é)
    "<0xA9>",      # continuation of multi-byte
]

text = "Hello world"

ARGS = {
    "tokens": tokens,
    "text": text,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_indices Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/gpt2/cache.py
code served (permissive licence) · get_code("e7b86614beeddd58")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import random

ARGS = {
    'n_lines': 100,
    'seed': 42,
    'probe_n': 10,
    'eval_n': 15,
    'train_frac': 0.7
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
stable_seed Ran
ran, honoured the contract we drafted
Mikki99/ipa-tokenization/src/ipa_tok/gpt2/cache.py
code served (permissive licence) · get_code("239df1b0cbcbb98a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'base_seed': 42,
    'modality': 'audio',
    'lang': 'en'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
summarise_tokenizer_result Ran
ran; our contract draft was wrong, not the code
Mikki99/ipa-tokenization/src/ipa_tok/eval/ranking.py
code served (permissive licence) · get_code("cce9cf46aa219b0d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
from typing import Any, Dict, List

ARGS = {
    'result': {
        'per_language': {
            'seen': [
                {
                    'fertility': 1.2,
                    'cont_words': 0.85,
                    'avg_token_len': 4.5,
                    'ttr': 0.75,
                    'renyi_1': 5.2,
                    'renyi_2': 4.8,
                    'renyi_inf': 3.1,
                    'cr': 0.65,
                    'vocab_util': 0.92,
                    'zipf_dev': 0.15,
                    'tok_parity': 0.88,
                    'num_words': 1000
                },
                {
                    'fertility': 1.3,
                    'cont_words': 0.80,
                    'avg_token_len': 4.2,
                    'ttr': 0.73,
                    'renyi_1': 5.0,
                    'renyi_2': 4.6,
                    'renyi_inf': 3.0,
                    'cr': 0.63,
                    'vocab_util': 0.90,
                    'zipf_dev': 0.16,
                    'tok_parity': 0.86,
                    'num_words': 1500
                }
            ],
            'unseen': [
                {
                    'fertility': 1.1,
                    'cont_words': 0.82,
                    'avg_token_len': 4.3,
                    'ttr': 0.74,
                    'renyi_1': 5.1,
                    'renyi_2': 4.7,
                    'renyi_inf': 3.05,
                    'cr': 0.64,
                    'vocab_util': 0.91,
                    'zipf_dev': 0.14,
                    'tok_parity': 0.87,
                    'num_words': 2000
                }
            ]
        },
        'meta': {
            'tfg': 0.95
        }
    },
    'info': {
        'sampling': 'random',
        'mode': 'train',
        'algorithm': 'bpe',
        'vocab_size': '5000',
        'results_path': '/tmp/tokenizer_results'
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resolve_punctuation_marks Not yet run
unverified (harvested, no recorded run)
Mikki99/ipa-tokenization/src/ipa_tok/g2p/phonemizer_convert.py
code served (permissive licence) · get_code("8816e85d176ceb85")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 16 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Multilingual language models often exhibit performance disparities across languages that can arise as early as the tokenization stage. Widely-used subword tokenization approaches favor high-resource languages, and tokenizerfree methods still yield longer sequences for scripts with a higher bytes-per-character ratio. To address these shortcomings, we propose to use the International Phonetic Alphabet (IPA) as a language-agnostic input representation for multilingual tokenizers. IPA provides a compact symbol inventory, greater cross-lingual character overlap, and a more balanced byte-per-character distribution across languages. We train matched pairs of text vs. IPA subword tokenizers across 24 languages and 14 scripts and demonstrate that IPA tokenizers consistently improve tokenization quality, especially for non-Latin scripts, and generalize more effectively to unseen languages and scripts. github.com/Mikki99/ipa-tokenization

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.20993")
get_code_for_paper("2606.20993")
have("2606.20993")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.20993.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.20993.svg)](https://syntology.ai/paper/2606.20993)

Connect an agent — have() is free.