Cardsort

Python package for analyzing open card sorting data with hierarchical clustering and dendrogram visualization

What it is

Cardsort is an open source Python library designed for UX researchers and information architects who need to analyze data from open card sorting exercises. The package implements hierarchical cluster analysis to create distance matrices, generate dendrograms, and extract user-generated category labels from sorting data. It helps teams understand how people naturally organize information, which is essential for developing effective website navigation and information architectures.

The library accepts data exports from kardsort.com in the Casolysis CSV format or any similarly structured dataset with columns for card IDs, labels, category IDs, category labels, and user IDs. Installation is straightforward via pip, and the documentation provides clear usage examples showing how to create dendrograms that summarize user-generated clusters and retrieve the labels participants assigned to specific card groupings.

Key features include automated dendrogram creation from sorting data, cluster label extraction for specified card sets, and support for advanced customization of the analysis pipeline. The output helps researchers interpret how different users grouped cards together and what terminology they used, revealing patterns that inform site structure decisions.

Cardsort is released under the MIT license and welcomes community contributions. The project includes a code of conduct, contributing guidelines, and a full API reference. It was built using cookiecutter and the py-pkgs-cookiecutter template, following modern Python packaging practices.

For UX professionals, product teams, and researchers conducting information architecture work, cardsort provides a programmatic way to move beyond manual analysis of card sorting results. The package integrates into data science workflows and can be combined with other Python tools for deeper qualitative and quantitative exploration of user mental models.

This description was generated by AI from the site's public content and may contain errors.

What you can do there

  • Create dendrograms from card sorting data
  • Generate distance matrices using hierarchical clustering
  • Extract user-generated category labels for specific card sets
  • Analyze data exports from kardsort.com
  • Access full API reference and usage examples

Who it's for

UX researchers, information architects, product designers, and data analysts working on information architecture

Frequently asked questions about cardsort.readthedocs.io

›What is cardsort used for?

Cardsort analyzes data from open card sorting exercises to create dendrograms, distance matrices, and extract user-generated category labels for information architecture research.

›What data format does cardsort accept?

It works with CSV exports from kardsort.com using the Casolysis format, or any data with columns for card_id, card_label, category_id, category_label, and user_id.

›How do I install cardsort?

Install it via pip with the command pip install cardsort, then import the analysis module in your Python scripts.

›Can cardsort handle data from sources other than kardsort.com?

Yes, any dataset following the same column structure can be used, not only kardsort.com exports.

›What license does cardsort use?

Cardsort is licensed under the MIT license, making it free for personal and commercial use.

›Does cardsort provide visualization output?

Yes, it creates dendrograms that visualize hierarchical clustering results from card sorting data.

›Who maintains cardsort?

The project was created by Katharina Kloppenborg and has multiple contributors listed in the credits section.