Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1023515 // ai_naturalWordType (or null)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (6252L/43K).

sS ai_naturalWordType(S word) {
  if (isAdjective(word)) ret "adjective";
  if (isAdverb(word)) ret "adverb";
  if (isNoun(word)) ret "noun";
  null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023515
Snippet name: ai_naturalWordType (or null)
Eternal ID of this version: #1023515/1
Text MD5: 3fe2e26c112010abc5d6319abfaff7e6
Transpilation MD5: a737dbfc653be05c57f61937fa6c8158
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-26 17:11:52
Source code size: 156 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 272 / 344
Referenced in: [show references]