Code interviews and open-ended answers, retrieve by code, and exchange projects as REFI-QDA

Qualitative Data Coding

Load interview transcripts or documents as sources, code passages with a hierarchical codebook, retrieve and cross-tabulate the coded segments, compare two coders with Cohen's kappa, and save the project as a .qdpx file that other QDA programs can open. Coding is by hand; there is no automatic coding.

This project lives only in this browser (autosave starts after your first change). Clearing site data or using a private window loses it, so export a .qdpx or project file at the end of each session.

Add sources

TXT, DOCX, PDF with a text layer, SRT or VTT transcripts. The extracted plain text is stored, so codings stay at the same positions.

Choose source files

Up to 50 files at a time, 5 million characters each

The attribute CSV has one row per source: the first column is the file name, the other columns are attributes such as site or age group.

Sources

No sources yet.

Qualitative Data Coding

Operator: Abdulla Al Fahad. How tools are built and checked

Coding qualitative data means reading a transcript, marking passages and giving each a label from a codebook that grows as you read, then pulling the passages back out by label to see what a code adds up to. The work is slow enough that the project file matters as much as the coding: if it cannot leave the program it was built in, the coding cannot be shared, reviewed or reused.

This page does the coding by hand, with overlapping codes in a hierarchy, and stores the plain text of every source so that each coding keeps its character positions. The project saves as a REFI-QDA .qdpx file, the exchange format several QDA programs read, and it can also be reloaded here.

Key features

  • Sources from TXT, DOCX, PDF with a text layer, and SRT or VTT transcripts, with attributes such as site or age group from a CSV
  • A codebook with colours, descriptions and parent codes; codes may overlap, and a code can be created from the words you select (in-vivo)
  • Retrieval of segments by code with sub-codes included, a code by attribute matrix, co-occurrence by overlap or proximity, frequency bars, and keyword-in-context limited to coded passages
  • Several coders in one project, merge of another coder's file (a coding already present is not added twice), and per-code percent agreement and Cohen's kappa at character or paragraph level
  • Save as .qdpx, codebook as .qdc, segments as CSV or XLSX, a DOCX report, and autosave in this browser with a clear warning that it lives only there

What the project file holds and how agreement is counted

A .qdpx is a ZIP with project.qde, an XML file in the REFI-QDA project schema, and a Sources folder. Each source is stored as a plain-text file named by its identifier, and the project lists it as a TextSource with the coders as Users, the codebook as nested Code elements with colours and descriptions, one PlainTextSelection for every span a coder coded and one Coding with a CodeRef for each code applied to it, and source attributes as Variables with a VariableValue on each source. Positions are character offsets from 0, and a selection runs from startPosition up to but not including endPosition, which is how the schema's own examples count.

Only plain-text sources are exchanged. When the page opens a .qdpx from another program it reads TextSource elements with plain text and their selections, and lists anything else, such as audio, video, images, PDFs and sources stored only as rich text, as skipped. A selection whose positions fall outside the text is skipped and reported. The file declares the REFI-QDA schema but has not been opened in NVivo, ATLAS.ti or MAXQDA here.

How it works

Codings are kept as (source, start, end, code, coder) with an optional memo. Two codes on the same span, or on overlapping spans, are separate rows, and removing a code removes its sub-codes and their codings. Search-and-code skips a passage the same coder has already given the same code.

Agreement is computed per code. At character level every character of a source is a unit and is marked 1 if the coder covered it with that code; at paragraph level every line is a unit marked 1 if any part of it is covered. The 2 x 2 table of both, only A, only B and neither gives percent agreement as (both + neither) / units and kappa as (observed - chance) / (1 - chance). Only sources that both coders coded at least once are counted, so uncoded material does not inflate agreement.

Co-occurrence counts pairs of codings of two different codes in one source: pairs that share at least one character, or pairs whose gap is within the distance you set. The attribute matrix shows, for each code and attribute value, the number of coded segments and the share of that value's sources that carry the code at least once.

Common use cases

  • Two coders each code the same 100 paragraphs for one code. They both mark 20, only A marks 5, only B marks 10, and 65 are marked by neither: agreement is 85% and kappa 0.625, because chance agreement is already 0.60.
  • A researcher with 30 interview transcripts and a CSV of site and cohort uses the code by attribute matrix to see which themes appear in a group's sources at all, then reads those passages in the segments view.

How to use this tool

  1. Add the sources, or press Load an example, and add an attributes CSV if you have one.
  2. On the Code tab select words and apply a code, or build the codebook first and use search-and-code for fixed terms.
  3. Use Retrieve to read what each code holds, add a second coder and compare them on Agreement, then export the .qdpx and keep the project file.

Example

Load an example: two invented interview excerpts (site North and South) with codes Emotion, Anxiety under it, Support and Money

Five passages are coded by Coder 1: one Anxiety, two Support and two Money.

What retrieval shows

Anxiety has 1 coding, Emotion 1 with its sub-code included, and Support and Money 2 each. By site, Support and Money each appear once in North and once in South, so 100% of the sources in both groups carry them. Saving as .qdpx and opening the file again returns the same codes, sources and positions.

Tips for best results

  • Build the codebook and its parents before coding in bulk: code colours and hierarchy come through into other programs, and moving a code under another later keeps every coding.
  • Use a different coder name for each person from the first day. A merged project can only tell coders apart by name, and the agreement table needs two.
  • Keep sources to a few thousand lines each. The coding view shows 20,000 characters at a time and every coding is stored as a row, so many medium files are easier to handle than one huge one.

Common pitfalls

Codings belong to the extracted text. A DOCX or PDF is read into plain text once, and re-importing a changed document gives new positions, so finish editing a source before coding it.

Kappa for a rare code is unstable and can be low even when two coders mostly agree, because chance agreement is high; read it next to the counts of both, only A and only B.

The project lives in this browser's storage and in the files you export. A private window, cleared site data or another device starts empty.

Common errors and how to fix them

This is not a project saved by this page
Open a .qdpx from a QDA program or a project file written by Project file (JSON) here. Other JSON files are refused.
The pattern repeats a group that itself repeats
Regular-expression search and Search and code refuse patterns that can backtrack badly, such as (a+)+c, because they can freeze the tab on a long source. Rewrite the pattern without the nested repeat.
"name.pdf" has no selectable text
The PDF is probably a scan. Run OCR on it first and choose the searchable copy.
A selection of "source" with positions 10-4000 (outside the text)
The .qdpx refers to text that the stored source does not have, usually because it was edited after coding. That coding is skipped; recode the passage.

Frequently asked questions

How was the REFI-QDA export checked?

By writing a project of two sources, three nested codes, seven codings by two coders, memos and attributes, reading it back and comparing every source text, code, position, coder and memo, then repeating once more: both rounds were identical. The XML follows the 1.5 schema's element order and attributes. It has not been compared with sample projects from qdasoftware.org (none could be downloaded) or opened in a QDA program, so import it into your program and check a few codings before relying on it.

Does it suggest codes automatically?

No. Every coding is made by a person, either by selecting text or by running a search you wrote and applying one code to every match. Search-and-code is mechanical, so read the matches in the segments view afterwards.