Skip to content

Commit

Permalink
fix dd fields (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera authored Jan 31, 2025
1 parent 9695fc8 commit 9282e0f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
18 changes: 9 additions & 9 deletions pymathics/natlang/linguistic_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ class DictionaryLookup(_WordListBuiltin):
https://reference.wolfram.com/language/ref/DictionaryLookup.html</url>
<dl>
<dt>'DictionaryLookup[$word$]'
<dt>'DictionaryLookup'[$word$]
<dd>lookup words that match the given $word$ or pattern.
<dt>'DictionaryLookup[$word$, $n$]'
<dt>'DictionaryLookup'[$word$, $n$]
<dd>lookup first $n$ words that match the given $word$ or pattern.
</dl>
Expand Down Expand Up @@ -121,7 +121,7 @@ class DictionaryWordQ(_WordNetBuiltin):
https://reference.wolfram.com/language/ref/DictionaryWordQ.html</url>
<dl>
<dt>'DictionaryWordQ[$word$]'
<dt>'DictionaryWordQ'[$word$]
<dd>returns True if $word$ is a word usually found in dictionaries, and False otherwise.
</dl>
Expand Down Expand Up @@ -157,10 +157,10 @@ class RandomWord(_WordListBuiltin):
<dt>'RandomWord[]'
<dd>returns a random word.
<dt>'RandomWord[$type$]'
<dt>'RandomWord'[$type$]
<dd>returns a random word of the given $type$, e.g. of type "Noun" or "Adverb".
<dt>'RandomWord[$type$, $n$]'
<dt>'RandomWord'[$type$, $n$]
<dd>returns $n$ random words of the given $type$.
</dl>
Expand Down Expand Up @@ -208,10 +208,10 @@ class WordData(_WordListBuiltin):
https://reference.wolfram.com/language/ref/WordData.html</url>
<dl>
<dt>'WordData[$word$]'
<dt>'WordData'[$word$]
<dd>returns a list of possible senses of a word.
<dt>'WordData[$word$, $property$]'
<dt>'WordData'[$word$, $property$]
<dd>returns detailed information about a word regarding $property$, e.g. "Definitions" or "Examples".
</dl>
Expand Down Expand Up @@ -374,7 +374,7 @@ class WordDefinition(_WordNetBuiltin):
https://reference.wolfram.com/language/ref/WordDefinition.html</url>
<dl>
<dt>'WordDefinition[$word$]'
<dt>'WordDefinition'[$word$]
<dd>returns a definition of $word$ or Missing["Available"] if $word$ is not known.
</dl>
Expand Down Expand Up @@ -406,7 +406,7 @@ class WordList(_WordListBuiltin):
<dt>'WordList[]'
<dd>returns a list of common words.
<dt>'WordList[$type$]'
<dt>'WordList'[$type$]
<dd>returns a list of common words of type $type$.
</dl>
Expand Down
2 changes: 1 addition & 1 deletion pymathics/natlang/manipulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Pluralize(Builtin):
https://reference.wolfram.com/language/ref/Pluralize.html</url>
<dl>
<dt>'Pluralize[$word$]'
<dt>'Pluralize'[$word$]
<dd>returns the plural form of $word$.
</dl>
Expand Down
18 changes: 9 additions & 9 deletions pymathics/natlang/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ class DeleteStopwords(_SpacyBuiltin):
)
<dl>
<dt>'DeleteStopwords[$list$]'
<dt>'DeleteStopwords'[$list$]
<dd>returns the words in $list$ without stopwords.
<dt>'DeleteStopwords[$string$]'
<dt>'DeleteStopwords'[$string$]
<dd>returns $string$ without stopwords.
</dl>
Expand Down Expand Up @@ -88,7 +88,7 @@ class TextCases(_SpacyBuiltin):
https://reference.wolfram.com/language/ref/TextCases.html</url>
<dl>
<dt>'TextCases[$text$, $form$]'
<dt>'TextCases'[$text$, $form$]
<dd>returns all elements of type $form$ in $text$ in order of their appearance.
</dl>
Expand Down Expand Up @@ -132,7 +132,7 @@ class TextPosition(_SpacyBuiltin):
https://reference.wolfram.com/language/ref/TextPosition.html</url>
<dl>
<dt>'TextPosition[$text$, $form$]'
<dt>'TextPosition'[$text$, $form$]
<dd>returns the positions of elements of type $form$ in $text$ in order of their appearance.
</dl>
Expand Down Expand Up @@ -170,10 +170,10 @@ class TextSentences(_SpacyBuiltin):
<dl>
<dt>'TextSentences[$string$]'
<dt>'TextSentences'[$string$]
<dd>returns the sentences in $string$.
<dt>'TextSentences[$string$, $n$]'
<dt>'TextSentences'[$string$, $n$]
<dd>returns the first $n$ sentences in $string$
</dl>
Expand Down Expand Up @@ -210,7 +210,7 @@ class TextStructure(_SpacyBuiltin):
https://reference.wolfram.com/language/ref/TextStructure.html</url>
<dl>
<dt>'TextStructure[$text$, $form$]'
<dt>'TextStructure'[$text$, $form$]
<dd>returns the grammatical structure of $text$ as $form$.
</dl>
Expand Down Expand Up @@ -272,10 +272,10 @@ class TextWords(_SpacyBuiltin):
https://reference.wolfram.com/language/ref/TextWords.html</url>
<dl>
<dt>'TextWords[$string$]'
<dt>'TextWords'[$string$]
<dd>returns the words in $string$.
<dt>'TextWords[$string$, $n$]'
<dt>'TextWords'[$string$, $n$]
<dd>returns the first $n$ words in $string$
</dl>
Expand Down
18 changes: 9 additions & 9 deletions pymathics/natlang/textual_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Containing(Builtin):
https://reference.wolfram.com/language/ref/Containing.html</url>
<dl>
<dt>'Containing[$outer$, $inner$]'
<dt>'Containing'[$outer$, $inner$]
<dd>represents an object of the type outer containing objects\
of type inner.
</dl>
Expand Down Expand Up @@ -65,7 +65,7 @@ class SpellingCorrectionList(Builtin):
https://reference.wolfram.com/language/ref/SpellingCorrectionList.html</url>
<dl>
<dt>'SpellingCorrectionList[$word$]'
<dt>'SpellingCorrectionList'[$word$]
<dd>returns a list of suggestions for spelling corrected versions of $word$.
</dl>
Expand Down Expand Up @@ -125,7 +125,7 @@ class WordCount(_SpacyBuiltin):
https://reference.wolfram.com/language/ref/WordCount.html</url>
<dl>
<dt>'WordCount[$string$]'
<dt>'WordCount'[$string$]
<dd>returns the number of words in $string$.
</dl>
Expand All @@ -149,7 +149,7 @@ class WordFrequency(_SpacyBuiltin):
https://reference.wolfram.com/language/ref/WordFrequency.html</url>
<dl>
<dt>'WordFrequency[$text$, $word$]'
<dt>'WordFrequency'[$text$, $word$]
<dd>returns the relative frequency of $word$ in $text$.
</dl>
Expand Down Expand Up @@ -206,13 +206,13 @@ class WordSimilarity(_SpacyBuiltin):
https://reference.wolfram.com/language/ref/WordSimilarity.html</url>
<dl>
<dt>'WordSimilarity[$text1$, $text2$]'
<dt>'WordSimilarity'[$text_1$, $text_2$]
<dd>returns a real-valued measure of semantic similarity of two texts or words.
<dt>'WordSimilarity[{$text1$, $i1$}, {$text2$, $j1$}]'
<dt>'WordSimilarity'[{$text_1$, $i1$}, {$text_2$, $j_1$}]
<dd>returns a measure of similarity of two words within two texts.
<dt>'WordSimilarity[{$text1$, {$i1$, $i2$, ...}}, {$text2$, {$j1$, $j2$, ...}}]'
<dt>'WordSimilarity'[{$text_1$, {$i1$, $i2$, ...}}, {$text_2$, {$j_1$, $j_2$, ...}}]
<dd>returns a measure of similarity of multiple words within two texts.
</dl>
Expand Down Expand Up @@ -300,10 +300,10 @@ class WordStem(Builtin):
https://reference.wolfram.com/language/ref/WordStem.html</url>
<dl>
<dt>'WordStem[$word$]'
<dt>'WordStem'[$word$]
<dd>returns a stemmed form of $word$, thereby reducing an inflected form to its root.
<dt>'WordStem[{$word1$, $word2$, ...}]'
<dt>'WordStem'[{$word_1$, $word_2$, ...}]
<dd>returns a stemmed form for list of $word$, thereby reducing an inflected form to its root.
</dl>
Expand Down
2 changes: 1 addition & 1 deletion pymathics/natlang/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class LanguageIdentify(Builtin):
https://reference.wolfram.com/language/ref/LanguageIdentify.html</url>
<dl>
<dt>'LanguageIdentify[$text$]'
<dt>'LanguageIdentify'[$text$]
<dd>returns the name of the language used in $text$.
</dl>
Expand Down

0 comments on commit 9282e0f

Please sign in to comment.