nlptoolkit-dictionary
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -100,2 +100,3 @@ export declare class Word { | ||
static isMoney(surfaceForm: string): boolean; | ||
static toCapital(surfaceForm: string): string; | ||
/** | ||
@@ -102,0 +103,0 @@ * The isPunctuation method without any argument, it checks name variable whether it is a punctuation or not and |
@@ -182,2 +182,5 @@ (function (factory) { | ||
} | ||
static toCapital(surfaceForm) { | ||
return surfaceForm.substring(0, 1).toLocaleUpperCase("tr") + surfaceForm.substring(1); | ||
} | ||
/** | ||
@@ -184,0 +187,0 @@ * The isPunctuation method without any argument, it checks name variable whether it is a punctuation or not and |
{ | ||
"name": "nlptoolkit-dictionary", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Turkish Dictionary", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -186,2 +186,6 @@ import {TurkishLanguage} from "../Language/TurkishLanguage"; | ||
static toCapital(surfaceForm: string): string{ | ||
return surfaceForm.substring(0, 1).toLocaleUpperCase("tr") + surfaceForm.substring(1) | ||
} | ||
/** | ||
@@ -188,0 +192,0 @@ * The isPunctuation method without any argument, it checks name variable whether it is a punctuation or not and |
@@ -30,2 +30,7 @@ import * as assert from "assert"; | ||
}); | ||
it('testToCapital', function() { | ||
assert.strictEqual("Ali", Word.toCapital("ali")) | ||
assert.strictEqual("İlginç", Word.toCapital("ilginç")) | ||
assert.strictEqual("Ç", Word.toCapital("ç")) | ||
}); | ||
it('testIsPunctuation', function() { | ||
@@ -32,0 +37,0 @@ assert.ok(Word.isPunctuation(".")); |
Sorry, the diff of this file is not supported yet
5926155
6374