Skip to content
Snippets Groups Projects
Commit eb445b3c authored by RahulSherikar's avatar RahulSherikar
Browse files

added few categories

parent 56584cd0
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,7 @@ public class Annotator {
}
}
else if(input.contains("stars is"))
else if(input.contains("stars"))
{
input = input.replace(".", "");
String[] spl = input.split(" stars ");
......@@ -362,6 +362,66 @@ public class Annotator {
return "false";
}
}
else if(input.contains("author is"))
{
input = input.replace(".", "");
String[] spl = input.split(" author is ");
String rtr = impl.wiki(spl[0]);
String content = impl.contentOfInfobox(rtr);
content = content.replaceAll("[^aA-zZ\\s]" , "");
content = content.replace("[" , "");
content = content.replace("]" , "");
if(content.contains(spl[1]))
{
return "true";
}
else
{
return "false";
}
}
else if(input.contains("author."))
{
input = input.replace(".", "");
String[] spl = input.split(" is ");
String rtr = impl.wiki(spl[1]);
String content = impl.contentOfInfobox(rtr);
content = content.replaceAll("[^aA-zZ\\s]" , "");
content = content.replace("[" , "");
content = content.replace("]" , "");
if(content.contains(spl[0]))
{
return "true";
}
else
{
return "false";
}
}
else if(input.contains("office is"))
{
input = input.replace(".", "");
String[] spl = input.split(" office is ");
String rtr = impl.wiki(spl[0]);
String content = impl.contentOfInfobox(rtr);
content = content.replaceAll("[^aA-zZ\\s]" , "");
content = content.replace("[" , "");
content = content.replace("]" , "");
if(content.contains(spl[1]))
{
return "true";
}
else
{
return "false";
}
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment