Search papers, labs, and topics across Lattice.
This paper investigates the relationship between Semantic Neighborhood Density (SND) of source code tokens and human eye gaze time, using data from prior eye-tracking studies on C and Java code. They found a positive correlation between SND and gaze time, particularly for uncommon words, suggesting that programmers spend more time looking at words with many semantically similar neighbors. While SND and frequency have some predictive power for gaze time, the effect is minor due to the inherent noise in eye-tracking data.
Programmers spend more time looking at code tokens that have many semantically similar neighbors, suggesting that semantic context significantly influences attention during code comprehension.
This paper studies the relationship between human eye gaze time on words in source code and the Semantic Neighborhood Density (SND) of those words. Human eye gaze time is a popular way to quantify human attention such as the importance of words people read and the cognitive effort people exert. Meanwhile, SND is a measure of how similar a word is in meaning to other words in the same context. SND has a long history in Psychology research where it has been connected to eye gaze time in various domains and helps explain human cognitive factors such as confusion and quality of reading comprehension. But SND carries an unknown and potentially unique meaning in software engineering. In this paper, we compute SND for tokens in source code that people viewed in two previous eye-tracking experiments, one in C and one in Java. We conduct a model-free analysis for statistical relationships between SND and gaze time, and a model-based analysis for predictive power of SND to gaze time. We found that words with high SND tend to have higher gaze time then low SND words, especially for words that are uncommon (i.e., have low frequency). We also found SND and frequency to have a minor predictive power on gaze time, despite high levels of noise common in eye tracking data