nlptoolkit-dictionary
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -12,2 +12,3 @@ import { Word } from "./Word"; | ||
constructor(name: string, flag?: string); | ||
clone(): TxtWord; | ||
/** | ||
@@ -14,0 +15,0 @@ * The addFlag method takes a String flag as an input and adds given flag to the flags {@link ArrayList}. |
@@ -29,2 +29,9 @@ (function (factory) { | ||
} | ||
clone() { | ||
let copy = new TxtWord(this.name); | ||
for (let i = 0; i < this.flags.length; i++) { | ||
copy.addFlag(this.flags[i]); | ||
} | ||
return copy; | ||
} | ||
/** | ||
@@ -31,0 +38,0 @@ * The addFlag method takes a String flag as an input and adds given flag to the flags {@link ArrayList}. |
{ | ||
"name": "nlptoolkit-dictionary", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Turkish Dictionary", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,2 +21,10 @@ import {Word} from "./Word"; | ||
clone(): TxtWord{ | ||
let copy = new TxtWord(this.name); | ||
for (let i = 0; i < this.flags.length; i++) { | ||
copy.addFlag(this.flags[i]); | ||
} | ||
return copy; | ||
} | ||
/** | ||
@@ -23,0 +31,0 @@ * The addFlag method takes a String flag as an input and adds given flag to the flags {@link ArrayList}. |
Sorry, the diff of this file is not supported yet
4967006
6058