Sockpuppet Detection in Hebrew Wikipedia: NLP & Authorship Analysis
A multimodal authorship-analysis framework for Hebrew Wikipedia that combines lexical, stylistic, and semantic evidence to rank pairs of accounts for further human investigation.
Can Hebrew sockpuppet pairs be identified from complementary authorship signals?
The project treats sockpuppet detection as a pairwise authorship problem. Instead of relying on a single textual representation, it combines three different views of the same users: lexical overlap, stable writing habits, and contextual semantic similarity.
The system is intended as decision support rather than an automatic banning mechanism. It assigns suspicion probabilities that can help investigators prioritize pairs for human review.
Hebrew-specific challenge
- Morphologically rich word forms
- Attached prefixes
- Spelling variation
- Mostly unvocalized text
- Topic similarity that can imitate authorship similarity
Three signals, one pair-level classifier.
Wikipedia comments are aggregated into user-level text representations. TF-IDF word n-grams model lexical similarity, stylometric features capture writing habits, and heBERT embeddings provide a semantic signal. A Random Forest combines the three similarities into a final pair-level prediction.
TF-IDF word n-grams
TF-IDF (term frequency, inverse document frequency) gives more weight to words and two-word phrases a user repeats but that are not common to every text. Two users are compared by the angle between their weighted vectors (cosine similarity), so shared vocabulary raises the score.
Stylometry
Stylometry measures how someone writes rather than what they write about. The project uses 11 structural metrics, such as average word and sentence length, punctuation ratios and lexical diversity, standardized and compared by distance.
heBERT semantic similarity
heBERT is a language model pre-trained on Hebrew. Each user's text is split into 120-word chunks, converted to numerical embeddings and averaged, so similar meaning can match even when the exact words differ.
Leave-One-Out Cross-Validation on verified and legitimate pairs.
Dataset
The reported evaluation contains 633 account pairs: 327 verified sockpuppet pairs and 306 legitimate pairs.
Classification performance
Overall accuracy was 77%. For the sockpuppet class, precision was 0.81, recall 0.72, and F1-score 0.76.
Feature contribution
In the fitted Random Forest, 47.33% of decision importance came from semantic features, 33.00% from stylometry and 19.67% from TF-IDF (figures from the project report). This describes this trained model, not a general ranking of the three signals.
Discovery phase
The trained model was subsequently applied to undocumented account pairs, with pairs receiving predicted probability of at least 70% flagged for further investigation rather than treated as confirmed identities.


What the errors mean
A false positive is a legitimate pair of editors flagged as sockpuppets (54 of the 306 legitimate pairs). A false negative is a verified sockpuppet pair the model missed (91 of the 327). In a review workflow the trade-off is workload against coverage: false positives send administrators to investigate editors who are unrelated, and false negatives leave related accounts unflagged. The report concludes that the classifier is not suitable as an autonomous decision-maker and fits best as a way to prioritize pairs for human review.
These counts come from leave-one-out testing on the 633 evaluation pairs. They are not error rates measured on an unseen population of Wikipedia editors.
Complementary evidence is more useful than a single authorship cue.
Lexical similarity can be affected by topic, stylometry can be intentionally altered, and semantic similarity can be high simply because two legitimate editors discuss the same subject. The project therefore frames the three representations as partially independent evidence sources whose combination is more informative than any one signal in isolation.
The reported results are promising for triage and investigation, but they do not justify treating the classifier as definitive proof that two accounts belong to the same person.
Methods
- TF-IDF word n-grams
- Stylometric similarity
- heBERT embeddings
- Random Forest classification
- Leave-One-Out Cross-Validation
- Precision, recall and F1 analysis
What the 77% does and does not establish.
Small, labeled sample
The evaluation has 633 pairs, a useful baseline that does not cover the full diversity of Hebrew Wikipedia behavior and limits subgroup analysis.
Labels depend on detection
Positive labels come from administrator-verified cases. Sockpuppets that evaded detection are absent, and the verified cases may over-represent behavior that is easier to spot.
Topic can mimic authorship
Editors discussing the same subject can share vocabulary and meaning for legitimate reasons, while one person using several accounts across topics may look less similar.
Text length and Hebrew processing
Short comments carry less evidence, and the lightweight prefix stemmer does not fully disambiguate Hebrew word forms.
Pair-based evaluation
Pairs are scored independently, so groups of accounts are not modeled. If one person appears in several pairs, a split by identity rather than by pair could change the results; the report proposes testing this.
One language, one platform
The system was built and evaluated on Hebrew Wikipedia text. Performance should not be assumed to carry over to other languages or platforms, and text alone does not capture all behavior behind account control.
Related work
Sockpuppet Detection: Network Analysis and SNA →
The same Wikipedia problem approached from the interaction side: do discussion networks carry a signature of sockpuppetry?
A Hebrew-language authorship problem with an explicit human-in-the-loop interpretation.
The project demonstrates a practical pipeline from Wikipedia text collection to pairwise ranking while retaining a clear distinction between statistical suspicion and verified identity.