/** * Licensed under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ /** * Class encapsulating the sense of a Chinese word */ export declare class WordSense { private simplified; private traditional; private pinyin; private english; private grammar; private notes; /** * Create a WordSense object * @param {!string} simplified - Simplified Chinese * @param {!string} traditional - Traditional Chinese * @param {string} pinyin - Mandarin pronunciation * @param {string} english - English equivalent * @param {string} grammar - Part of speech * @param {string} notes - Freeform notes */ constructor(simplified: string, traditional: string, pinyin: string, english: string, grammar: string, notes: string); /** * Gets the English equivalent for the sense * @return {string} English equivalent for the sense */ getEnglish(): string | undefined; /** * Gets the part of speech for the sense * @return {string} part of speech for the sense */ getGrammar(): string | undefined; /** * Gets the Mandarin pronunciation for the sense * @return {string} Mandarin pronunciation */ getPinyin(): string | undefined; /** * Gets notes relating to the word sense * @return {string} freeform notes */ getNotes(): string | undefined; /** * Gets the simplified Chinese text for the sense * @return {!string} The simplified Chinese text for the sense */ getSimplified(): string; /** * Gets the traditional Chinese for the sense * @return {string} traditional Chinese */ getTraditional(): string | undefined; }