# TF-IDF linux commits

DevFeed: [TF-IDF linux commits](<https://devfeed.tech/articles/tf-idf-linux-commits-77717.md>)

Original publisher: [Read original article](<https://danluu.com/linux-devs-say/>)

Published: 2014-11-24T00:00:00Z

Content type: article

Language: en

Sources: [Danluu](<https://devfeed.tech/sources/danluu.md>)

Topics: [gitsign](<https://devfeed.tech/topics/gitsign.md>)

Tags: [2005](<https://devfeed.tech/tags/2005.md>), [arm](<https://devfeed.tech/tags/arm.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [count](<https://devfeed.tech/tags/count.md>), [driver](<https://devfeed.tech/tags/driver.md>), [git](<https://devfeed.tech/tags/git.md>), [linux](<https://devfeed.tech/tags/linux.md>), [miller](<https://devfeed.tech/tags/miller.md>), [noise](<https://devfeed.tech/tags/noise.md>), [null](<https://devfeed.tech/tags/null.md>)

## AI overview

The article analyzes Linux commit messages to explore what different contributors work on. It explains how filtering common words and applying TF-IDF can reveal contributor-specific topics, while noting that TF-IDF is useful for distinguishing documents or people rather than identifying what they share.

## Source excerpt

I was curious what different people worked on in Linux, so I tried grabbing data from the current git repository to see if I could pull that out of commit message data. This doesn't include history from before they switched to git, so it only goes back to 2005, but that's still a decent chunk of history. Here's a list of the most commonly used words (in commit messages), by the top four most frequent committers, with users ordered by number of commits. User 1 2 3 4 5 viro to in of and the tiwai alsa the - for to broonie the to asoc for a davem the to in and sparc64 Alright, so their most frequently used words are to, alsa, the, and the. Turns out, Takashi Iwai (tiwai) often works on audio (alsa), and by going down the list we can see that David Miller's (davem) fifth most frequently used term is sparc64, which is a pretty good indicator that he does a lot of sparc work. But the table is mostly noise. Of course people use to, in, and other common words all the time! Putting that into a table provides zero information. There are a number of standard techniques for dealing with this. One is to explicitly filter out "stop words", common words that we don't care about. Unfortunately, that doesn't work well with this dataset without manual intervention. Standard stop-word lists are going to miss things like Signed-off-by and cc, which are pretty uninteresting. We can generate a custom list of stop words using some threshold for common words in commit messages, but any threshold high enough to catch all of the noise is also going to catch commonly used but interesting terms like null and driver. Luckily, it only takes about a minute to do by hand. After doing that, the result is that many of the top words are the same for different committers. I won't reproduce the table of top words by committer because it's just many of the same words repeated many times. Instead, here's the table of the top words (ranked by number of commit messages that use the word, not raw count), wi