I have a bunch of domains I would like to explode into words. I downloaded wordlist from wordlist.sourceforge.net and started writing brute-force type of script to run each domain through dictionary list.
问题是,我无法取得足够结果。 我所看到的简单文字是:
foreach($domains as $dom) {
$orig_dom = $dom;
foreach($words as $w) {
$pos = stristr($dom,$w);
if($pos) {
$wd[$orig_dom][] = $w;
}
}
}
词是字典阵列,范围只是一系列域名。
结果是:
[aheadsoftware] => Array
(
[0] => ahead
[1] => head
[2] => heads
[3] => soft
[4] => software
[5] => ware
从技术上讲,它行之有效,但我不知道如何制定法典,以了解,如果你走到前面,你就不会有头脑或头脑。 还应当理解选择软件而不是软硬件。 我知道,语言计算的世界是纯疼痛;