pub struct Word<'a> {
pub dictionary: &'a str,
pub reading: Option<&'a str>,
pub sense: Option<u32>,
pub form: Option<&'a str>,
pub checked: bool,
}Expand description
Information about a Japanese word found in an Example.
Fields§
§dictionary: &'a strThe dictionary form of the word.
reading: Option<&'a str>A reading in hiragana.
This is to resolve cases where the word can be read different ways. WWWJDIC uses this to ensure that only the appropriate sentences are linked. The reading is in “round” parentheses.
sense: Option<u32>A sense number.
This occurs when the word has multiple senses in the EDICT file, and indicates which sense applies in the sentence. WWWJDIC displays these numbers. The sense number is in “square” parentheses.
form: Option<&'a str>The form in which the word appears in the sentence.
This will differ from the indexing word if it has been inflected, for example. This field is in “curly” parentheses.
checked: boolIndicates that the sentence pair is a good and checked example of the usage of the word.
Words are marked to enable appropriate sentences to be selected by dictionary software. Typically only one instance per sense of a word will be marked. The WWWJDIC server displays these sentences below the display of the related dictionary entry.