Sans AI Font Remaps Character Codes to Make Bulk AI Scraping Harder
Australia's RMIT University and its partners released Sans AI to make automated collection of text for AI more difficult. A launch event was held in Melbourne on December 2, Melbourne time. The Australian Writers' Guild also supports it. The extension's store listing credits TBWA\Melbourne with creating it and releasing it alongside RMIT University and the Australian Writers' Guild.
Digital text stores codes that represent characters. To display text, the system consults a font and draws the shape, or glyph, corresponding to each character code. A program that extracts strings directly from HTML can retrieve the text without rendering it.
Sans AI changes the mapping between character codes and glyphs. It substitutes random codes for characters in the text and generates a font for each document that displays the original glyphs.
For example, if the letter A is replaced by another code, mapping that code to the glyph for A in the custom font still makes it look like A to the reader. A program that extracts the string gets the remapped code. Since the text visible on screen differs from the underlying string, the extracted string cannot be used as the original text as it stands.
The mapping also changes with each conversion. The idea is interesting because authors can change what data a scraper receives as well as express their refusal to allow its use.
Preserving the line count in scripts
A Chrome extension is available. Authors write as usual and convert the text afterward. To publish it on a website, they use the matching web font.
Sans AI can also convert PDFs. RMIT says it was designed to preserve lines, indents, and page breaks in scripts and manuscripts. The developers also describe a feature for creating converted PDFs from Word documents.
A script's line count can help estimate the length of a production. Sans AI matches the widths of its 395 characters to those of the monospace font Courier so conversion can preserve the number of lines in a script. It also includes characters used in several Indigenous Australian languages.
RMIT says the extension and PDF conversion run on the user's computer, with no account or upload required. For a tool that handles unpublished manuscripts, being able to keep the original with the author is a benefit.
Making mass collection harder
RMIT also explains that optical character recognition (OCR), which recognizes text in images, can read the rendered text. As long as the text remains readable on screen, it can still be recovered from an image.
A site using Sans AI must also deliver the custom font to the reader's browser. It may be possible to reconstruct the original text by analyzing the mapping between character codes and glyphs.
Sans AI targets automated collection of text at scale, or scraping. Glyph recognition or analysis of the remapping adds work to a process that previously could extract strings directly from HTML. How much work it adds will depend on the collection method.
ShieldFont is a related technology. ShieldFont aims to contaminate training data by replacing words in HTML with other real words. Sans AI remaps character codes to make the original text harder to obtain.
Converting and republishing text cannot erase copies already collected. The expected result differs depending on whether the tool is applied before publication or to a previously published article.
Some people use machines to read text
RMIT says remapping can affect copying, search, and automated translation. If a search engine can retrieve only the remapped string, searching for words in the original text may make the article harder to find.
Screen readers used by people with visual impairments are also affected. In its accessibility techniques, the W3C lists substituting look-alike characters without providing alternative text as a failure to meet the standard. It explains that assistive technology handles the characters differently even when they look alike.
If a screen reader receives a remapped Sans AI string, it may read the text incorrectly. Providing the original text separately could support screen readers, but a publicly available copy may also be collected.
How Sans AI impedes bulk text collection and what it affects
| Use | Input | With Sans AI |
|---|---|---|
| Reading on screen | Custom font glyphs | Original is readable |
| Extracting text | Remapped string | Differs from the original |
| Optical character recognition | Glyphs on screen | Can recognize original text |
| Copying | Remapped string | Differs from the original |
| Search and machine translation | Remapped string | May be affected |
| Screen readers | Remapped string | May read text incorrectly |
Reaching readers who use screen readers or search is one purpose of publishing. A site trying to reach a broad audience and a script sent to a small group may need different features. Anyone using the tool for Japanese text would also want to check that kana and kanji display as intended.
Publishing text and consenting to training
Article 30-4 of Japan's Copyright Act permits uses to the extent necessary when the purpose is neither to enjoy the thoughts or feelings expressed in a work nor to let others enjoy them. Information analysis can qualify, but the provision does not apply if the use would unreasonably prejudice the copyright holder's interests.
On March 15, 2024, the Subcommittee on Legal System and Fundamental Issues of the Council for Cultural Affairs' Copyright Subdivision compiled its views on AI and copyright. Japan's Agency for Cultural Affairs has published the related documents, including a checklist and guidance dated July 31.
The effectiveness of technical measures to impede collection and the uses copyright law permits depend on separate conditions. Using Sans AI does not itself determine whether AI training is lawful.
I want people to read what I write. I also want to decide whether my writing is used to train AI. If technology can protect both choices, that is progress worth having.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
