16 lines
296 B
JavaScript
16 lines
296 B
JavaScript
const addon = require('./addon.js');
|
|
|
|
class Punctuation {
|
|
constructor(config) {
|
|
this.handle = addon.createOfflinePunctuation(config);
|
|
this.config = config;
|
|
}
|
|
addPunct(text) {
|
|
return addon.offlinePunctuationAddPunct(this.handle, text);
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
Punctuation,
|
|
}
|