[Paper Review] Assessment of SE-specific Sentiment Analysis Tools: An Extended Replication Study.
This study evaluates SE-specific sentiment analysis tools by replicating and extending prior research on GitHub and Stack Overflow discussions. It finds that off-the-shelf SE tools often produce contradictory results at fine-grained levels, suggesting platform-specific tuning or retraining is essential for valid conclusions in SE empirical studies.
Sentiment analysis methods have become popular for investigating human communication, including discussions related to software projects. Since general-purpose sentiment analysis tools do not fit well with the information exchanged by software developers, new tools, specific for software engineering (SE), have been developed. We investigate to what extent SE-specific tools for sentiment analysis mitigate the threats to conclusion validity of empirical studies in software engineering, highlighted by previous research. First, we replicate two studies addressing the role of sentiment in security discussions on GitHub and in question-writing on Stack Overflow. Then, we extend the previous studies by assessing to what extent the tools agree with each other and with the manual annotation on a gold standard of 600 documents. We find that different SE-specific sentiment analysis tools might lead to contradictory results at a fine-grain level, when used 'off-the-shelf'. Conversely, platform-specific tuning or retraining might be needed to take into account differences in platform conventions, jargon, or document lengths.
Motivation & Objective
- To evaluate whether SE-specific sentiment analysis tools improve conclusion validity in empirical SE studies.
- To replicate two prior studies on sentiment in GitHub security discussions and Stack Overflow question writing.
- To assess inter-tool agreement and alignment with manual annotations on a gold-standard dataset of 600 documents.
- To investigate whether off-the-shelf SE tools yield reliable results across different SE platforms.
Proposed method
- Replication of two prior studies focusing on sentiment in GitHub security discussions and Stack Overflow question writing.
- Creation of a gold-standard dataset of 600 documents manually annotated for sentiment.
- Application of multiple SE-specific sentiment analysis tools to the same dataset to compare their outputs.
- Quantitative assessment of tool agreement using inter-annotator agreement metrics and comparison with manual annotations.
- Analysis of discrepancies to identify sources such as platform conventions, jargon, or document length differences.
- Evaluation of the impact of platform-specific tuning or retraining on tool performance and consistency.
Experimental results
Research questions
- RQ1To what extent do SE-specific sentiment analysis tools agree with each other when applied to SE-specific text?
- RQ2How well do SE-specific tools align with manual sentiment annotations on a gold-standard dataset?
- RQ3Do SE tools produce consistent results when used off-the-shelf across different SE platforms like GitHub and Stack Overflow?
- RQ4What factors contribute to discrepancies between SE tools in sentiment classification?
- RQ5Is platform-specific tuning or retraining necessary to achieve reliable sentiment analysis in SE contexts?
Key findings
- Different SE-specific sentiment analysis tools frequently produce contradictory sentiment classifications when used off-the-shelf on fine-grained SE text.
- Inter-tool agreement is low, indicating significant inconsistency across tools even when applied to the same SE text.
- SE tools show limited alignment with manual annotations, suggesting potential reliability issues in empirical SE studies.
- Discrepancies are partly due to differences in platform conventions, domain-specific jargon, and document length across platforms.
- The study demonstrates that platform-specific tuning or retraining is necessary to improve tool consistency and validity.
- Off-the-shelf SE tools cannot be reliably used without adaptation to specific SE platforms due to contextual and linguistic variations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.