Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Test if a string is composed of katakana characters
IgnorePunctuation | False | whether to ignore PunctuationCharacter in the string |
"IgnoreWhitespace" | False | whether to ignore WhitespaceCharacter in the string |
Test whether a character is katakana:
In[1]:= |
Out[1]= |
In[2]:= |
Out[2]= |
In[3]:= |
Out[3]= |
Test if a string contains only katakana characters:
In[4]:= |
Out[4]= |
In[5]:= |
Out[5]= |
In[6]:= |
Out[6]= |
In[7]:= |
Out[7]= |
KatakanaQ yields False when given spaces:
In[8]:= |
Out[8]= |
Use the katakana middle dot as a valid separator:
In[9]:= |
Out[9]= |
In[10]:= |
Out[10]= |
In[11]:= |
Out[11]= |
KatakanaQ yields False when given punctuation characters:
In[12]:= |
Out[12]= |
KatakanaQ threads over lists:
In[13]:= |
Out[13]= |
By default, the presence of characters that match PunctuationCharacter will cause KatakanaQ to yield False:
In[14]:= |
Out[14]= |
Ignore punctuation:
In[15]:= |
Out[15]= |
By default, the presence of characters that match WhitespaceCharacter will cause KatakanaQ to yield False:
In[16]:= |
Out[16]= |
Ignore whitespace characters:
In[17]:= |
Out[17]= |
An empty string will yield True:
In[18]:= |
Out[18]= |
Get the full list of katakana characters:
In[19]:= |
Out[19]= |
Verify the output of Alphabet["Katakana"]:
In[20]:= |
Out[20]= |
Test if a character name corresponds to a katakana character:
In[21]:= |
Out[21]= |
In[22]:= |
Out[22]= |
In[23]:= |
Out[23]= |
The set of characters matched by KatakanaQ is larger than Alphabet["Katakana"] since it includes additional characters (e.g. diacritics):
In[24]:= |
Out[24]= |
In[25]:= |
Out[25]= |
In[26]:= |
Out[26]= |
Test if a string will fully Transliterate into katakana:
In[27]:= |
Out[27]= |
SpeechSynthesize a piece of text, but use a Japanese voice for katakana characters:
In[28]:= |
Out[28]= |
In[29]:= |
Out[29]= |
In[30]:= |
Out[30]= |
In[31]:= |
Out[31]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License