nuve 2.0.0

dotnet add package nuve --version 2.0.0
NuGet\Install-Package nuve -Version 2.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="nuve" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nuve --version 2.0.0
#r "nuget: nuve, 2.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.
// Install nuve as a Cake Addin
#addin nuget:?package=nuve&version=2.0.0

// Install nuve as a Cake Tool
#tool nuget:?package=nuve&version=2.0.0


Nuve is a Natural Language Processing Library for Turkish. Currently it supports:

  • Morphologic analysis (35K word per second on a i5 2.8 GHz 64 bit machine)
  • Morphologic generation
  • Stemming
  • Sentence (segmentation) boundary detection
  • N-gram extraction

Morphologic Analysis is demonstrated here:

Morphologic Generation is demonstrated here:

Use cases for the above tasks are as follows:

Morphologic Analysis and Stemming
Language tr = LanguageFactory.Create(LanguageType.Turkish);

IList<Word> solutions = tr.Analyze("yolsuzu");

foreach (var solution in solutions)
    Console.WriteLine("\t{0}", solution);
    Console.WriteLine("\toriginal:{0} stem:{1}\n",
    solution.GetStem().GetSurface()); //Stemming


	original:yolsuzu stem:yolsuz root:yol/ISIM

	original:yolsuzu stem:yolsuz root:yol/ISIM

####Morphologic Generation

//Method 1: Specify the ids of the morphemes that constitute the word
var word1 = tr.Generate("kitap/ISIM", "IC_COGUL_lAr", "IC_SAHIPLIK_BEN_(U)m",

//Method 2: Specify the string representation of the analysis of the word.
string analysis = "kitap/ISIM IC_COGUL_lAr IC_SAHIPLIK_BEN_(U)m";
var word2 = tr.GetWord(analysis);




Use the public bool AddSuffix(Suffix suffix, Language language) method in order to make sure that the word is still valid (for Turkish) after adding the suffix.

Root root = tr.GetRootsHavingSurface("gel").First(); //A Turkish verb root 

var word = new Word(root);

//In Turkish the plural suffix "IC_COGUL_lAr" can not be appended to verbs!
if(!word.AddSuffix(tr.GetSuffix("IC_COGUL_lAr"), tr))
    Console.WriteLine("Adding the suffix IC_COGUL_lAr after a verb is not valid!");
    Console.WriteLine(word.GetSurface()); //prints "gel"

####Sentence Segmentation:

var paragraph = "Prof. Dr. Ahmet Bey 1.6 oranında artış var dedi 2. kez. E-posta adresi ahmet.bilir@prof.dr imiş! Doğru mu?";
ITokenizer tokenizer = new ClassicTokenizer(true);
SentenceSegmenter segmenter = new TokenBasedSentenceSegmenter(tokenizer);
var sentences = segmenter.GetSentences(paragraph);
foreach (string sentence in sentences)
N-gram Extraction:
string Text1 = "I am Sam";
string Text2 = "Sam I am";
string Text3 = "I do not like green eggs and ham";
int Unigram = 1;
int Bigram = 2;
int Trigram = 3;

var corpus = new NGramDictionary(new NGramExtractor(Unigram, Trigram));

int freq = corpus.GetFrequency("I", "am");

Add to your project

The easiest way to add Nuve in to your project is [NuGet] (

In Visual Studio open [Package Manager Console] ( and run the following command:

PM> Install-Package Nuve
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

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.0.0 648 2/21/2023
1.5.2 9,556 7/7/2016
1.5.1 1,578 2/23/2016
1.5.0 1,548 1/4/2016
1.4.1 1,615 10/19/2015
1.4.0 1,523 10/19/2015
1.3.2 1,518 7/22/2015
1.3.1 1,647 5/8/2015
1.3.0 1,425 4/1/2015
1.2.2 1,900 12/12/2014
1.2.1 1,600 12/12/2014
1.2.0 1,595 12/12/2014
1.1.2 1,463 7/19/2014
1.1.1 1,394 7/19/2014
1.1.0 1,411 7/19/2014
1.0.4 1,467 3/16/2014
1.0.3 1,421 2/23/2014
1.0.2 1,469 2/22/2014
1.0.1 1,486 2/22/2014
1.0.0 1,641 2/22/2014