Mostlylucid.LucidRAG.Readers.Gutenberg 2.7.5

dotnet add package Mostlylucid.LucidRAG.Readers.Gutenberg --version 2.7.5
                    
NuGet\Install-Package Mostlylucid.LucidRAG.Readers.Gutenberg -Version 2.7.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mostlylucid.LucidRAG.Readers.Gutenberg" Version="2.7.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mostlylucid.LucidRAG.Readers.Gutenberg" Version="2.7.5" />
                    
Directory.Packages.props
<PackageReference Include="Mostlylucid.LucidRAG.Readers.Gutenberg" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mostlylucid.LucidRAG.Readers.Gutenberg --version 2.7.5
                    
#r "nuget: Mostlylucid.LucidRAG.Readers.Gutenberg, 2.7.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Mostlylucid.LucidRAG.Readers.Gutenberg@2.7.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mostlylucid.LucidRAG.Readers.Gutenberg&version=2.7.5
                    
Install as a Cake Addin
#tool nuget:?package=Mostlylucid.LucidRAG.Readers.Gutenberg&version=2.7.5
                    
Install as a Cake Tool

Mostlylucid.LucidRAG.Readers.Gutenberg

Project Gutenberg archive reader for the Summarizers pipeline.

Features

  • ZIP Archive Support: Reads ZIP archives containing .txt or .html files
  • Boilerplate Stripping: Removes Project Gutenberg header and footer boilerplate
  • Metadata Extraction: Title, author, release date, language, eBook number from PG headers
  • HTML Handling: Strips HTML tags from Gutenberg HTML archives, preserving paragraph structure
  • Encoding Detection: UTF-8 with fallback to Latin-1
  • Word Count: Zero-allocation word counting for extracted content

Usage

services.AddGutenbergReader();

var reader = serviceProvider.GetRequiredService<IDocumentReader>();
var result = await reader.ReadAsync("pg84.zip");

// Metadata from PG header
Console.WriteLine(result.Metadata["title"]);   // "Frankenstein; Or, The Modern Prometheus"
Console.WriteLine(result.Metadata["author"]);   // "Mary Wollstonecraft Shelley"
Console.WriteLine(result.Metadata["language"]); // "English"

Supported Extensions

  • .zip (Project Gutenberg archives)

Dependencies

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.7.5 147 3/30/2026
2.7.4 111 3/30/2026
2.7.3 126 3/30/2026
2.7.1 124 3/29/2026
2.7.0 109 3/29/2026
2.6.0 121 3/29/2026
2.5.0-alpha0 117 2/10/2026
2.1.0 126 2/9/2026
2.1.0-preview2 117 2/9/2026
2.0.1-rc0 112 2/9/2026
1.1.1 130 2/4/2026
1.0.0 120 2/4/2026
1.0.0-rc6 115 2/4/2026
1.0.0-rc5 114 2/3/2026
1.0.0-rc4 113 2/3/2026
1.0.0-rc2 114 2/3/2026

Initial release.
Project Gutenberg ZIP/HTML archive reading with boilerplate stripping and metadata extraction.