Hidden Gems
This repository contains code to compute a ranking of Steam games, based on a score intended to favor "hidden gems".
A "hidden gem" is defined as a high-quality game (hence the "gem") which only got little attention (hence "hidden").
The score of a game is defined as the product of a quality measure (its Wilson score) and a decreasing function of a popularity measure (its players total forever).
The popularity of game genres varies wildly with geography, which leads to different appreciations of a ranking of
hidden gems. A statistical analysis of the reviewers' language could allow to personalize rankings of hidden gems with a
better account of regional specificity. Our try at building regional rankings appears in compute_regional_stats.py
.
-
Install the latest version of Python 3.X.
-
Install the required packages:
pip install -r requirements.txt
- First, call the Python script
create_dict_using_json.py
, which will download data through SteamSpy API. A file ending with_steamspy.json
will be automatically created at runtime if the file is missing for the current day.
python create_dict_using_json.py
- Then, call the Python script
compute_stats.py
to build the ranking by optimizing the free parameter alpha.
python compute_stats.py
- Finally, call the Python script
compute_regional_stats.py
to build regional rankings, one per language. In order to estimate the number of players in each region, Steam reviews have to be downloaded through Steam API. Depending on the number of hidden gems displayed in the global ranking, and depending on the number of reviews for each hidden gem, this process may require a decent amount of time.
python compute_regional_stats.py
The most recent results are shown on a wiki.
Few past results are listed below:
- original ranking, featured on PC Gamer, based on pre-sales data, using players total as a popularity measure.
- updated ranking, using data from June 30, a week after the Steam summer sales have started.
The ranking of hidden gems is favorably biased towards high-quality games which have not been translated to many languages. To be insensitive to this bias, there are regional rankings of hidden gems. The core of the method is the same, but the data is processed differently so that both the quality and popularity measures are constrained to players who speak the same language. For the quality measure, every review is downloaded, the language tag assigned to the review is taken into account, and the review language is also assessed with an external tool to confirm that the language tag is correct. For the popularity measure, we assume that for any given game, the distribution of players and reviewers is the same with respect to languages.
- a NeoGAF post explaining the method,
- a NeoGAF post explaining the idea behind the optimization of the only free parameter.
- the PC Gamer article which provides nice insights regarding our approach.
- the Steam250 website which updates rankings every day.
- Steam Labs: Interactive Recommender released by Valve on July 11, 2019.
- my PyPI package to download Steam reviews
- my original repository for regional rankings of hidden gems
- a pre-downloaded database of Steam reviews