# Bootstrapping Cookbooks for APIs from Crowd Knowledge on Stack Overflow

**Authors:** Lucas B. L. Souza, Eduardo C. Campos, Fernanda Madeiral, Kl\'erisson, Paix\~ao, Adriano M. Rocha, Marcelo de Almeida Maia

arXiv: 1903.09174 · 2019-03-25

## TL;DR

This paper presents a semi-automatic method to create crowd-sourced API cookbooks from Stack Overflow, improving API documentation quality by organizing community knowledge into accessible, recipe-like guides.

## Contribution

It introduces a novel approach to automatically generate crowd cookbooks from Stack Overflow, demonstrating their quality and usefulness for API documentation enhancement.

## Key findings

- Cookbooks generally meet desired properties and contain appropriate, self-contained recipes.
- The approach successfully generates useful cookbooks for SWT, LINQ, and QT APIs.
- Crowd cookbooks can be as effective as manually created ones.

## Abstract

Well established libraries typically have API documentation. However, they frequently lack examples and explanations, possibly making difficult their effective reuse. Stack Overflow is a question-and-answer website oriented to issues related to software development. Despite the increasing adoption of Stack Overflow, the information related to a particular topic (e.g., an API) is spread across the website. Thus, Stack Overflow still lacks organization of the crowd knowledge available on it. Our target goal is to address the problem of the poor quality documentation for APIs by providing an alternative artifact to document them based on the crowd knowledge available on Stack Overflow, called crowd cookbook. A cookbook is a recipe-oriented book, and we refer to our cookbook as crowd cookbook since it contains content generated by a crowd. The cookbooks are meant to be used through an exploration process, i.e. browsing. In this paper, we present a semi-automatic approach that organizes the crowd knowledge available on Stack Overflow to build cookbooks for APIs. We have generated cookbooks for three APIs widely used by the software development community: SWT, LINQ and QT. We have also defined desired properties that crowd cookbooks must meet, and we conducted an evaluation of the cookbooks against these properties with human subjects. The results showed that the cookbooks built using our approach, in general, meet those properties. As a highlight, most of the recipes were considered appropriate to be in the cookbooks and have self-contained information. We concluded that our approach is capable to produce adequate cookbooks automatically, which can be as useful as manually produced cookbooks. This opens an opportunity for API designers to enrich existent cookbooks with the different points of view from the crowd, or even to generate initial versions of new cookbooks.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1903.09174/full.md

## Figures

13 figures with captions in the complete paper: https://tomesphere.com/paper/1903.09174/full.md

## References

49 references — full list in the complete paper: https://tomesphere.com/paper/1903.09174/full.md

---
Source: https://tomesphere.com/paper/1903.09174