← Latest papers
💬 NLP

Hylog: A Hybrid Approach to Logging Text Production in Non-alphabetic Scripts

This paper introduces Hylog, a novel open-source hybrid logging system that synchronizes keyboard input with rendered text to overcome the limitations of traditional keyloggers in capturing Input Method Editor (IME) transformations for non-alphabetic scripts, thereby enabling more granular cognitive analysis of multilingual text production.

Original authors: Roberto Crotti, Giovanni Denaro, Zhiqiang Du, Ricardo Muñoz Martín

Published 2026-08-04
📖 8 min read🧠 Deep dive

Original authors: Roberto Crotti, Giovanni Denaro, Zhiqiang Du, Ricardo Muñoz Martín

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a detective trying to solve the mystery of how our brains work when we write. For decades, scientists have used "keyloggers"—software that records every single tap on a keyboard—to study the tiny pauses and bursts of speed that happen while we type. These pauses are like footprints; they tell us when a writer is thinking hard, hesitating, or making a mistake. This field is called cognitive science, and it helps us understand the invisible mental gymnastics behind writing. However, there's a big problem: these footprints are easy to find when writing in English or other languages that use the alphabet, because one key equals one letter. But what happens when you write in Chinese, Japanese, or Korean? In those languages, you don't type characters directly. You type sounds, and a special helper program called an Input Method Editor (IME) guesses which character you want. It's like ordering a pizza by humming a tune, and the chef (the IME) deciding which pizza to bring you. Traditional keyloggers can't see the chef's choices; they only hear the humming. This leaves a huge gap in our understanding of how people think when writing in these languages.

Enter Hylog, a new tool built by researchers Roberto Crotti, Giovanni Denaro, Zhiqiang Du, and Ricardo Muñoz Martín to solve this mystery. Think of Hylog as a super-detective that wears two pairs of glasses at once. One pair sees the "humming" (the Latin letters you type), and the other pair sees the "pizza" (the actual Chinese characters that appear on the screen). By combining these two views, Hylog creates a perfect, synchronized map of the typing process. The researchers tested this system with two volunteers translating a heating pad manual from English to Chinese. They found that Hylog could spot tiny pauses and mental steps that traditional tools completely missed. For instance, it could measure exactly how long a person waited to confirm a character choice, revealing that the mental effort isn't just about hitting keys, but about making decisions in a complex guessing game. This suggests that to truly understand how people write in non-alphabetic languages, we need a tool that watches both the input and the final result, not just one or the other.

The Problem: The "Invisible" Typist

Imagine you are watching a magician pull a rabbit out of a hat. A standard keylogger is like a camera that only records the magician's hands moving. It sees the hands go in, the hands go out, and it records the time it took. But it doesn't see the rabbit appear inside the hat, nor does it know that the magician had to pause to choose the right rabbit from a hat full of them.

For a long time, researchers studying how people write have used keyloggers to track "Interkeystroke Intervals" (IKIs). These are the tiny gaps of time between pressing one key and the next. A short gap might mean the writer is on a roll; a long gap might mean they are stuck, thinking, or looking up a word. This works great for English, where typing "c-a-t" is a direct line from finger to screen.

But Chinese is different. To type the character for "cat" (mao), you don't press a "cat" key. You type the sounds "m-a-o" in the Latin alphabet. Then, a program called an Input Method Editor (IME) pops up a list of possible characters that sound like "mao." You have to look at the list, find the right one, and press a number key to select it.

Here is the catch: Traditional keyloggers only see the "m-a-o" and the number press. They miss the moment you stare at the list, decide which character is correct, and confirm it. It's like the keylogger sees the magician's hands but misses the rabbit appearing. This means researchers were missing a huge chunk of the cognitive process—the mental work of choosing and confirming characters.

The Solution: A Hybrid Detective

The authors of this paper created Hylog (Hybrid Logging) to fix this blind spot. Instead of just listening to the keyboard, Hylog does two things at the same time:

  1. It listens to the keyboard: Like a standard keylogger, it records every Latin letter you type and every number you press to confirm a choice.
  2. It watches the screen: Like a text logger, it takes snapshots of what actually appears on your screen.

The magic happens in the middle. Hylog has a special "hybridizer" module that acts like a translator. It takes the list of sounds you typed and the list of characters that appeared, and it lines them up perfectly. It figures out, "Ah, the user typed 'm-a-o', waited 500 milliseconds, and then the character 'mao' appeared."

To do this efficiently, especially when working with huge documents, Hylog uses a clever trick called the Dynamic Snapshot Window (DSW). Imagine you are editing a 300-page book. A clumsy logger would try to copy the entire book every time you changed a single letter, slowing your computer to a crawl. Hylog, however, is like a smart spotlight. It only shines on the tiny section of the text you are currently editing. If you move your cursor to the beginning of the book, the spotlight jumps there instantly. If you type a few words, it only records those few words. This keeps the process fast and unobtrusive, so the writer doesn't even notice the software is there.

The Experiment: Translating a Heating Pad

To test if Hylog actually works, the researchers asked two volunteers to translate a heating pad instruction manual from English into Simplified Chinese.

  • John was a native Chinese speaker (L1).
  • Jane was a learner of Chinese (L2), whose first language was Italian.

They used two tools at the same time: the old standard (Inputlog 9.5) and the new Hylog.

What they found:
The old tool, Inputlog, saw the typing as a flat stream of Latin letters. It couldn't tell the difference between typing a letter and confirming a character. It was like trying to understand a conversation by only hearing the vowels.

Hylog, however, saw the whole picture. It broke the typing process down into distinct layers:

  • The Sound Layer: The time it took to type the Latin letters (e.g., "m-a-o").
  • The Character Layer: The time it took for the character to appear after confirmation.
  • The Decision Layer: The time spent waiting to choose the right character from the IME list.

The results showed that Hylog could identify 98.4% of the character confirmations for John and 100% for Jane. It successfully filtered out "noise" (like accidental key presses) and aligned the keyboard taps with the screen changes with millisecond precision.

What the Data Revealed

By looking at these synchronized layers, the researchers could see things that were previously invisible:

  • Motor Skills vs. Brain Power: They measured "dwell time" (how long you hold a key down). Both John and Jane held their keys for about the same amount of time (around 80–110 milliseconds). This suggests that the physical act of pressing keys is a muscle memory skill that doesn't change much, regardless of how good you are at the language.
  • The "Thinking" Pause: The real difference showed up in the gaps between keys. Jane, the learner, had much longer pauses when selecting characters from the IME list compared to John. This suggests that her brain was working harder to figure out which character was correct.
  • The "Flow" of Typing: John's typing showed a lot of "rollover," where he pressed the next key before letting go of the previous one. This is a sign of a fluent, automatic rhythm. Jane's typing was more "serial," pressing one key, letting go, then pressing the next. This indicates she was thinking more about each step.

Crucially, the study found that the biggest mental bottleneck wasn't typing the sounds, but confirming the characters. The time spent waiting to select the right character was the longest pause in the process. This tells us that for non-alphabetic scripts, the hardest part of writing isn't the physical typing; it's the cognitive decision-making.

Why This Matters

This paper doesn't claim to have solved all the mysteries of writing, but it has built a much better flashlight. Before Hylog, researchers studying Chinese writing had to guess what was happening during those long pauses, or they had to ignore them entirely. Now, they can see exactly when a writer is struggling with a character choice versus when they are just thinking about what to write next.

The researchers are careful to note that this is a "proof-of-concept" study. They only tested two people and one specific type of Chinese input (Microsoft Pinyin). They suggest that future work will need to test more people and different input methods (like Sogou or Baidu). However, the core idea—that we need to watch both the keyboard and the screen to understand non-alphabetic writing—is now supported by solid data.

By making their tool open-source, the authors are inviting other scientists to use Hylog to explore how people write in Japanese, Korean, and other complex scripts. It's a step toward a more inclusive understanding of how humans think, write, and communicate in a digital world, ensuring that the "footprints" of non-alphabetic writers are finally visible to the scientific community.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →