Skip to main content

Introduction to FlexiConc

FlexiConc is a Python package developed to facilitate and enhance the computational analysis of concordances, primarily intended for use in corpus linguistic research. The package is rooted in theoretical insights from the “Reading Concordances in the 21st Century” research project supported by the Arts and Humanities Research Council (AHRC) (grant references: AH/X002047/1 & AH/X002047/2) and the Deutsche Forschungsgemeinschaft (DFG) (grant reference: 508235423).

FlexiConc systematically supports analysts in organizing, filtering, and interpreting concordance data through algorithmic assistance, making complex corpus research reproducible and accountable.

What is FlexiConc?

FlexiConc provides computational methods to assist corpus linguists in systematically exploring concordances—lists of text segments centered around keywords or query matches (nodes). It enables flexible manipulation of concordances through a structured approach that includes selecting subsets of data, ordering concordance lines based on specific criteria, and grouping them into meaningful clusters or partitions.

Core Features

Concordance Views

A concordance view is a filtered, ordered, grouped, or otherwise transformed subset of a concordance, designed to help analysts identify and interpret patterns. Concordance views support "vertical reading" via traditional KWIC (Keyword in Context) format, allowing efficient examination of recurring linguistic patterns.

Core Analytical Strategies

FlexiConc is built around three main strategies:

  1. Selecting: Focusing on subsets of concordance lines based on criteria such as metadata categories, contextual keywords, or random sampling.
  2. Ordering: Arranging concordance lines either through sorting (pairwise comparisons) or ranking (based on numeric preference scores to prioritize lines of interest).
  3. Grouping: Organizing concordance lines into meaningful categories, either by partitioning based on explicit criteria or clustering by semantic, syntactic, or lexical similarity.

Analysis Trees

The analytical workflow in FlexiConc is structured via an analysis tree, a hierarchical history of applied algorithms and operations. Each node in the tree represents either a subset selection or a rearrangement (ordering/grouping) of concordance lines, preserving a complete record of the analyst's exploratory steps. This ensures research transparency, facilitates reproducibility, and enables easy revisiting of previous analytical steps.

Integration and Extensibility

FlexiConc is designed primarily as a backend library for integration into concordancer applications. The host application handles corpus queries, initial concordance generation, user interaction, and visualization, while FlexiConc processes concordances, applies algorithms, and manages analysis trees. This clear division ensures FlexiConc can be integrated into various concordancing environments easily.

FlexiConc's modular design supports adding new analytical algorithms seamlessly, fostering ongoing innovation and adaptability to evolving research needs.

Intended Users and Use Cases

FlexiConc is suited for:

  • Corpus linguists performing qualitative and quantitative pattern analyses.
  • Developers of concordance applications seeking computational backend solutions.
  • Educators and researchers requiring reproducible and systematic documentation of analytical steps.

Technical Overview

FlexiConc operates on structured concordance data containing token and metadata annotations provided by the host application.

Algorithm outputs—subset selections, sorting keys, clustering information—are returned as structured concordance views, enabling host applications to provide clear visual representations.

Documentation

As of the current version, the complete documentation is still in development and the details of the API are subject to change. However, you can learn how FlexiConc works from the examples in this Jupyter notebook.

Metadata

Release files for FlexiConc 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FlexiConc 0.1.4
File Size Uploaded Provenance Actions
flexiconc-0.1.4.tar.gz 65.0 kB Without provenance Details for flexiconc-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for FlexiConc 0.1.4
File Interpreter ABI Platform Actions
flexiconc-0.1.4-py3-none-any.whl Python 3 none any Details for flexiconc-0.1.4-py3-none-any.whl

Total release size: 134.8 kB

Release files / flexiconc-0.1.4.tar.gz

Download URL flexiconc-0.1.4.tar.gz
Size 65.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7885006a91d5d85fe2a3caa91c86125154c18f07a480e7a15b37f0d390d3869c
BLAKE2b-256 checksum
How to use checksums
8891df5339dab91385234582455451687c2069dbd85e2afdb75b40d9d916413a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release files / flexiconc-0.1.4-py3-none-any.whl

Download URL flexiconc-0.1.4-py3-none-any.whl
Size 69.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c37aaa12309d59fb86cb26c9b44d0a22ac214170e6225849b9973494182cf8b
BLAKE2b-256 checksum
How to use checksums
2861584b6f111fa359906b6fbc1ece9fefe3013ac38b3dde88dbc1bc5845cca3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Security for FlexiConc 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page