DocumentParserIda 1.0.0

dotnet add package DocumentParserIda --version 1.0.0
                    
NuGet\Install-Package DocumentParserIda -Version 1.0.0
                    
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="DocumentParserIda" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DocumentParserIda" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DocumentParserIda" />
                    
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 DocumentParserIda --version 1.0.0
                    
#r "nuget: DocumentParserIda, 1.0.0"
                    
#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 DocumentParserIda@1.0.0
                    
#: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=DocumentParserIda&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=DocumentParserIda&version=1.0.0
                    
Install as a Cake Tool

Parser

A parser that takes a string as input and parses it into an object containing paragraphs with sentences objects.

Made in .NET 5.0 with C#.

Usage example

// the input can for example be read from a file and made into a string.
var streamReader = new StreamReader("../../../DocumentToParse.txt", Encoding.UTF8);
var input = streamReader.ReadToEnd();

// Or simple by making a string.
var input = "#About me. \n Hello! My name is Ida and I like programming \n\n New paragraph. \n\n\n#Paragraph title \n Sentences.";

// A title is made by using a '#' before the sentence.
// By doing a newline '\n' signals that the title is over and a paragraph is starting.
// By making a new paragraph add a title or use two or more newlines '\n\n'.
// A sentence can end with '.', '?', '!' or nothing, but using more than one ending symbol will cause an ParsingException.

// A DocumentParser is created with the input to parse a Document.
var documentParser = new DocumentParser(input);

// A Document is made.
var document = documentParser.ParseDocument();


// This example will print out all SentencesParagraphs DotSentences (sentences that ends with '.').
// Note that this does not get DotSentences in titles as well.
var sentencesParagraphs = document.GetSentencesParagraphs();

foreach (var sentencesParagraph in sentencesParagraphs)
{
	var dotSentences = sentencesParagraph.GetDotSentences();
	
	foreach (var dotSentence in dotSentences)
	{
		Console.WriteLine(dotSentence);
	}
}

// Output:
// New paragraph.
// Sentences.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
1.0.0 461 10/21/2021