- Impact
- 233
How to filter best 2 word .com names from drop lists?
You could do that with excel. It would actually be very simple thing to do. But you would need a database with good words.
function getWordsFromString($string) {
// list of dictionary words, put as many words as you want here but consider memory usage and load time.
$wordList = [
'domain',
'with',
'has',
'keywords',
'valid',
];
$results = [];
foreach ($wordList as $key => $value) {
if ( preg_match('/' . $value . '/', $string, $found) )
{
$results = array_merge($results, $found);
}
}
$results = array_map('ucwords', $results);
return $results;
}
function filterDomains(array $list, $max = 2) {
$results = [];
foreach ($list as $key => $value) {
$info = pathinfo($value);
$domain = $info['filename'];
$tld = $info['extension'];
$words = getWordsFromString($domain);
if ( ! empty($words) && ( count($words) <= $max ) )
{
$words = implode('', $words);
$test = str_replace(strtolower($words), null, $domain);
if ( $test == '' ) {
$results[] = $words . '.' . $tld;
}
}
}
return $results;
}
$list = array(
'domainkeywords.com', // valid, two words domain.
'validdomain.com', // valid, two words domain.
'haskeywords.com', // valid, two words domain.
'domainwithkeywords.com', // invalid, 3 words domain.
'bladomain.com', // invalid, only contains one word.
'blablabla.com', // invalid, no words found.
);
$results = filterDomains($list);
// here is the result, each word will be capitalized.
array(
'DomainKeywords.com',
'ValidDomain.com',
'HasKeywords.com',
)
Thanks for sharing this - I'm going to check it out.Do you use ExpiredDomains.net for searching Pending Deletes? It so, they already have a filter for "number of words" where you can set the minimum and maximum. That's probably the quickest and easiest solution..
No problem.. Here are some quick steps for those who need them:
1) Visit ExpiredDomains.net and create free account/login
2) Click "Marketplace Domains" tab at the top followed by the "Pending Delete" tab
3) Click the red 'Show Filter' link towards the top. Then, click the Additional tab
4) Look under "Keywords" and you will see the "Word Count" option.
Hope this helps!
No problem.. Here are some quick steps for those who need them:
1) Visit ExpiredDomains.net and create free account/login
2) Click "Marketplace Domains" tab at the top followed by the "Pending Delete" tab
3) Click the red 'Show Filter' link towards the top. Then, click the Additional tab
4) Look under "Keywords" and you will see the "Word Count" option.
if you use http://F1lter.com as a registered user
you can define multiple keyword lists
so you may be able to identify your most wanted domains very very fast and easy
I dont see the word count option. Can you help?