← Selected work

TorqueLens

NLP pipeline mining Reddit's car subs for sentiment and topic shifts.

Year
2026
Role
Developer
Stack
Python · NLTK · Gensim · Django · Next.js

The problem

Car buyers argue endlessly on Reddit, and there is real signal in it: which brands people trust, how sentiment shifts, which themes cluster. But it is buried in noisy, sarcastic, unstructured comments that no dashboard reads for you.

What I built

An NLP pipeline in Python. PRAW collects comments from five automotive subreddits. NLTK handles tokenisation, stopword removal and WordNet lemmatisation, and VADER scores sentiment. Two topic models, LDA on a bag-of-words corpus and NMF on a TF-IDF matrix, surface the themes. On top sit fuel-type classification and a brand co-occurrence matrix, shown as wordclouds, sentiment over time and a heatmap. A Django API feeds a Next.js dashboard.

The hardest decision

The judgement call was whether one topic model was enough. A single model’s topics can be artefacts of its assumptions, and you can’t tell a real theme from noise. I ran LDA and NMF side by side and only trusted themes both methods agreed on. It cost extra compute and interpretation time. It is the difference between reporting findings and reporting coincidences.

Results

  • 2,000+ comments analysed. Basis: the size of the corpus I collected, TorqueLens: comments from five automotive subreddits.
  • Cross-checking two topic models gave themes I could stand behind. This is a judgement from reading the topics, not a scored evaluation.
  • Not measured: how often VADER misreads sarcasm.

What I’d do differently

The weak link is VADER. It is fast and lexicon-based, so it misses the sarcasm that is everywhere in car forums. I’d trial a transformer sentiment model and measure how many of the sarcastic comments VADER was getting wrong, before changing anything else.

Screenshots

Two wordclouds side by side, positive and negative comments, with 'car', 'people' and 'forum' dominant in both.
Wordclouds for positive and negative comments. The largest words overlap between the two.
Grouped bar chart of the monthly share of negative, neutral and positive comments from April to September 2024.
Share of negative, neutral and positive comments by month.
Car brand co-occurrence heatmap with brand names on both axes and counts in each cell.
Which brands get discussed together.