Putting Language into Context Using Smartphone-Based Keyboard Logging
Florian Bemmann, Timo Koch, Maximilian Bergmann, Clemens Stachl, Daniel Buschek, Ramona Schoedel, Sven Mayer
TL;DR
Language data from smartphones often lacks contextual information and privacy protections. The authors propose context-enriched keyboard logging that uses input prompt text metadata to infer input motive, with on-device preprocessing and a large six-month field study (N=624) to derive a motive mapping and to share an Android library. They find that filtering by input motive yields clearer data and higher LIWC matches for messaging and social content, while search queries remain challenging, underscoring the value of motive-based data curation. The framework supports privacy-preserving collection and fine-grained analysis across linguistics, psychology and HCI, offering practical tools and a roadmap for reproducible, on-device mobile language research.
Abstract
While the study of language as typed on smartphones offers valuable insights, existing data collection methods often fall short in providing contextual information and ensuring user privacy. We present a privacy-respectful approach - context-enriched keyboard logging - that allows for the extraction of contextual information on the user's input motive, which is meaningful for linguistics, psychology, and behavioral sciences. In particular, with our approach, we enable distinguishing language contents by their channel (i.e., comments, messaging, search inputs). Filtering by channel allows for better pre-selection of data, which is in the interest of researchers and improves users' privacy. We demonstrate our approach on a large-scale six-month user study (N=624) of language use in smartphone interactions in the wild. Finally, we highlight the implications for research on language use in human-computer interaction and interdisciplinary contexts.
